Definition texture_buffer.h:31
void bind(uint stage, bgfx::Access::Enum access=bgfx::Access::Read, uint8_t mipLevel=0) const
Bind the texture buffer to the compute shader.
Definition texture_buffer.h:97
void create(ushort width, ushort height, bgfx::TextureFormat::Enum format, uint64_t flags=BGFX_TEXTURE_NONE, bool hasMips=false, uint nLayers=1, const bgfx::Memory *data=nullptr)
Creates the texture buffer and sets the data (if given) for compute shaders.
Definition texture_buffer.h:68
void swap(TextureBuffer &other)
Swap the content of this object with another TextureBuffer object.
Definition texture_buffer.h:44