Struct TextureView

A handle to a texture view.

struct TextureView ;

A TextureView object describes a texture and associated metadata needed by a RenderPipeline or BindGroup.

Fields

NameTypeDescription
descriptor const(__C.WGPUTextureViewDescriptor)Describes this texture view.
multisampled const(std.typecons.Flag!("multisampled"))Whether this texture view is multisampled.

Methods

NameDescription
binding (location) Creates a texture view binding.
destroy () Release the handle to this texture view.
textureSampler (location, visibility, filtering) Creates a texture-sampler pair of consecutive bindings, starting at location.

See Also

wgpu::TextureView