Table of Contents

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 = 16

The Texture is a two-dimensional cubemap.

DepthStencil = 8

The Texture can be used as the depth target of a Framebuffer.

GenerateMipmaps = 64

The Texture supports automatic generation of mipmaps through GenerateMipmaps(Texture).

RenderTarget = 4

The Texture can be used as the color target of a Framebuffer.

Sampled = 1

The Texture can be used as the target of a read-only TextureView, and can be accessed from a shader.

Staging = 32

The 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 = 2

The Texture can be used as the target of a read-write TextureView, and can be accessed from a shader.