![]() |
wisdom
|
C version:
C++ version:
width defines texture width in pixels.height describes texture height in pixels.depth_or_array_size describes texture depth in pixels. Used only for 3D textures.mip_levels defines number of mip levels in the texture.format describes texture format.sample_count specifies number of samples per pixel. Used only for multisampled textures.layout specifies texture layout. Default is WisTextureLayoutTexture2D.usage_flags describes texture usage flags. Describe how the texture will be used.flags describes texture flags. Describe additional options for the texture.memory_type specifies where the texture will be allocated.memory_flags describes the flags of the memory to allocate for the texture.cast_formats points to an array of formats that can be used to cast the texture to another format. Used for format casting in shaders.cast_format_count defines the number of the number of cast formats in the WisTextureDesc::cast_formats array.