|
bgfx::TextureFormat::Enum | mFormat = bgfx::TextureFormat::Count |
|
◆ bind()
void vcl::TextureBuffer::bind |
( |
uint |
stage, |
|
|
bgfx::Access::Enum |
access = bgfx::Access::Read , |
|
|
uint8_t |
mipLevel = 0 |
|
) |
| const |
|
inline |
Bind the texture buffer to the compute shader.
If the texture buffer is valid, it is bound to the compute shader with the specified stage and the given access type (Read, Write, Read Write). If the texture buffer is not valid, nothing happens.
- Parameters
-
[in] | stage | the stage to which the buffer is bound. |
[in] | access | the access type for the buffer. |
[in] | mipLevel | the mip level of the texture. |
◆ create()
Creates the texture buffer and sets the data (if given) for compute shaders.
If the buffer is already created (isValid() returns true
), it is destroyed and a new one is created.
- Parameters
-
[in] | width | the width of the texture. |
[in] | height | the height of the texture. |
[in] | format | the format of the texture. |
[in] | flags | the flags for the texture. |
[in] | hasMips | if true, the texture has mipmaps. |
[in] | nLayers | the number of layers of the texture. |
[in] | data | the memory containing the data. |
◆ swap()
Swap the content of this object with another TextureBuffer object.
- Parameters
-
The documentation for this class was generated from the following file: