Enum rokol::gfx::ImageType [−][src]
#[repr(u32)]
pub enum ImageType {
_Default,
Dim2,
Dim3,
Array,
Cube,
_ForceU32,
_Num,
}
Expand description
2D | 3D | Array | Cube
Basic type of an image object.
The image type is used in the sg_image_desc.type
member when creating an image, and
in sg_shader_image_desc
when describing a shader’s texture sampler binding.
Platform
3D- and array-textures are not supported on the GLES2/WebGL backend
(use sg_query_features().imagetype_3d
and sg_query_features().imagetype_array
to check for
support).
Variants
_Default
Dim2
2D
Dim3
3D
Array
Cube
_ForceU32
_Num
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ImageType
impl UnwindSafe for ImageType
Blanket Implementations
Mutably borrows from an owned value. Read more