A handle to a texture on the GPU.

Methods

@:has_untypedcreateDefaultView():TextureView

Creates a default view of this whole texture.

Throws:

UseAfterDestroyException

If the instance was already destroyed.

@:has_untypedcreateView(textureViewDescriptor:TextureViewDescriptor):TextureView

Creates a view of this texture.

Throws:

UseAfterDestroyException

If the instance was already destroyed.

@:has_untypeddestroy():Void

Destroy the texture.

Using the instance after this will throw a UseAfterDestroyException exception.

Throws:

UseAfterDestroyException

If the instance was already destroyed.