Enum TextureUsage
- Namespace
- NeoVeldrid
- Assembly
- NeoVeldrid.dll
A bitmask indicating how a Texture is permitted to be used.
[Flags]
public enum TextureUsage : byte
Fields
Cubemap = 16The Texture is a two-dimensional cubemap.
DepthStencil = 8The Texture can be used as the depth target of a Framebuffer.
GenerateMipmaps = 64The Texture supports automatic generation of mipmaps through GenerateMipmaps(Texture).
RenderTarget = 4The Texture can be used as the color target of a Framebuffer.
Sampled = 1The Texture can be used as the target of a read-only TextureView, and can be accessed from a shader.
Staging = 32The Texture is used as a read-write staging resource for uploading Texture data. With this flag, a Texture can be mapped using the Map(MappableResource, MapMode, uint) method.
Storage = 2The Texture can be used as the target of a read-write TextureView, and can be accessed from a shader.