|
nicegraf
|
Static Public Member Functions | |
| static ngf_resource_bind_op | texture (const ngf_image image) |
| static ngf_resource_bind_op | storage_image (const ngf_image image) |
| static ngf_resource_bind_op | storage_buffer (const ngf_buffer buf, size_t offset, size_t range) |
| static ngf_resource_bind_op | uniform_buffer (const ngf_buffer buf, size_t offset, size_t range) |
| static ngf_resource_bind_op | texel_buffer (const ngf_texel_buffer_view buf_view) |
| static ngf_resource_bind_op | sampler (const ngf_sampler sampler) |
| static ngf_resource_bind_op | texture_and_sampler (const ngf_image image, const ngf_sampler sampler) |
Convenience wrapper for binding resources. See cmd_bind_resources for details.
|
inlinestatic |
Creates a ngf_resource_bind_op for a sampler.
| sampler | The sampler to use. |
|
inlinestatic |
Creates a ngf_resource_bind_op for an storage buffer.
| buf | The buffer to bind as a storage buffer. |
| offset | The offset at which to bind the buffer. |
| range | The extent of the bound memory. |
|
inlinestatic |
Creates a ngf_resource_bind_op for an ngf_image that is to be used as a storage image
| image | The image to bind. |
|
inlinestatic |
Creates a ngf_resource_bind_op for a texel buffer.
| buf | The buffer to bind as a texel buffer. |
| offset | The offset at which to bind the buffer. |
| range | The extent of the bound memory. |
| fmt | The texel format expected by the shader. |
|
inlinestatic |
Creates a ngf_resource_bind_op for a ngf_image.
| image | The image to bind. |
|
inlinestatic |
Creates a ngf_resource_bind_op for a combined image + sampler.
| image | The image part of the combined image + sampler. |
| sampler | The sampler part of the combined image + sampler. |
|
inlinestatic |
Creates a ngf_resource_bind_op for an uniform buffer.
| buf | The buffer to bind as a uniform buffer. |
| offset | The offset at which to bind the buffer. |
| range | The extent of the bound memory. |