warp.TextureResourceFlags#

class warp.TextureResourceFlags(*values)[source]#

Flags specifying how a texture resource will be used by Warp.

Attributes

NONE

Warp will read and write to this resource (default).

READ_ONLY

Warp will not write to this resource.

WRITE_DISCARD

Warp will not read from this resource and will write over the entire contents of the resource.

SURFACE_LDST

Warp will bind this resource to a surface reference.

TEXTURE_GATHER

Warp will perform texture gather operations on this resource.

NONE = 0#

Warp will read and write to this resource (default).

READ_ONLY = 1#

Warp will not write to this resource.

WRITE_DISCARD = 2#

Warp will not read from this resource and will write over the entire contents of the resource.

SURFACE_LDST = 4#

Warp will bind this resource to a surface reference.

TEXTURE_GATHER = 8#

Warp will perform texture gather operations on this resource.