Raven Engine v0.1
Loading...
Searching...
No Matches
Raven::TextureSpecification Struct Reference

Defines the properties and intended usage of a texture. More...

#include <Texture.h>

Public Attributes

u32 Width = 1
 Width of the texture in pixels.
u32 Height = 1
 Height of the texture in pixels.
ImageFormat Format = ImageFormat::RGBA8
 Pixel format of the texture.
ImageUsage Usage = ImageUsage::Texture
 Usage flags describing how the texture is used.
u8 Mips = 1
 Number of mipmap levels.
bool Transfer = false
 Whether the texture supports transfer operations.

Detailed Description

Defines the properties and intended usage of a texture.

Contains dimensions, pixel format, usage flags, mipmap count, and whether the texture is used for transfer operations (e.g., staging).

Member Data Documentation

◆ Format

ImageFormat Raven::TextureSpecification::Format = ImageFormat::RGBA8

Pixel format of the texture.

◆ Height

u32 Raven::TextureSpecification::Height = 1

Height of the texture in pixels.

◆ Mips

u8 Raven::TextureSpecification::Mips = 1

Number of mipmap levels.

◆ Transfer

bool Raven::TextureSpecification::Transfer = false

Whether the texture supports transfer operations.

◆ Usage

ImageUsage Raven::TextureSpecification::Usage = ImageUsage::Texture

Usage flags describing how the texture is used.

◆ Width

u32 Raven::TextureSpecification::Width = 1

Width of the texture in pixels.


The documentation for this struct was generated from the following file: