Raven Engine v0.1
A modern 3D Game Engine
Loading...
Searching...
No Matches
Raven::ImageSpecification Struct Reference

Describes the properties required to create or configure an Image2D resource. More...

#include <Image.h>

Public Attributes

u32 Width = 1
 Width of the image in pixels.
u32 Height = 1
 Height of the image in pixels.
ImageFormat Format
 Pixel format of the image (e.g. RGBA8, Depth32, etc.).
ImageUsage Usage = ImageUsage::ColorAttachment
 Intended usage flags for the image (render target, texture, etc.).
u8 Layers = 1
 Number of layers (for array textures or cubemaps).
u8 Mips = 1
 Number of mipmap levels.
bool Transfer = false
 Whether this image will be used as a transfer source/destination.
bool CreateDescriptor = true
 Whether this image will create its own descriptor using ImGui's pool.
bool CompareEnable = false
SamplerMode SamplerAddressMode = SamplerMode::Repeat
DepthCompareOperator DepthCompare = DepthCompareOperator::LessOrEqual

Detailed Description

Describes the properties required to create or configure an Image2D resource.

Member Data Documentation

◆ CompareEnable

bool Raven::ImageSpecification::CompareEnable = false

◆ CreateDescriptor

bool Raven::ImageSpecification::CreateDescriptor = true

Whether this image will create its own descriptor using ImGui's pool.

◆ DepthCompare

DepthCompareOperator Raven::ImageSpecification::DepthCompare = DepthCompareOperator::LessOrEqual

◆ Format

ImageFormat Raven::ImageSpecification::Format

Pixel format of the image (e.g. RGBA8, Depth32, etc.).

◆ Height

u32 Raven::ImageSpecification::Height = 1

Height of the image in pixels.

◆ Layers

u8 Raven::ImageSpecification::Layers = 1

Number of layers (for array textures or cubemaps).

◆ Mips

u8 Raven::ImageSpecification::Mips = 1

Number of mipmap levels.

◆ SamplerAddressMode

SamplerMode Raven::ImageSpecification::SamplerAddressMode = SamplerMode::Repeat

◆ Transfer

bool Raven::ImageSpecification::Transfer = false

Whether this image will be used as a transfer source/destination.

◆ Usage

ImageUsage Raven::ImageSpecification::Usage = ImageUsage::ColorAttachment

Intended usage flags for the image (render target, texture, etc.).

◆ Width

u32 Raven::ImageSpecification::Width = 1

Width of the image in pixels.


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