wisdom
Loading...
Searching...
No Matches
WisTextureDesc Struct Reference

Detailed Description

Specification


C version:

// Provided by Wisdom 0.7.0.
typedef struct WisTextureDesc {
uint32_t width;
uint32_t height;
uint16_t depth_or_array_size;
uint16_t mip_levels;
WisDataFormat format;
WisSampleCount sample_count;
WisTextureUsageFlags usage_flags;
WisMemoryType memory_type;
WisMemoryFlags memory_flags;

C++ version:

namespace wis{
// Provided by Wisdom 0.7.0.
struct TextureDesc {
std::uint32_t width;
std::uint32_t height;
std::uint16_t depth_or_array_size;
std::uint16_t mip_levels;
wis::DataFormat format;
wis::SampleCount sample_count;
wis::TextureLayout layout;
wis::TextureUsageFlags usage_flags;
wis::TextureFlags flags;
wis::MemoryType memory_type;
wis::MemoryFlags memory_flags;
};
}

Members


  • 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.

Description


See Also


See also
Functions: wisResourceAllocatorCreateTexture