nicegraf
ngf_attachment_description Struct Reference

Data Fields

ngf_attachment_type type
 
ngf_image_format format
 
ngf_sample_count sample_count
 
bool is_sampled
 
bool is_resolve
 

Detailed Description

Describes the type and format of a render target attachment.

Field Documentation

◆ format

ngf_image_format ngf_attachment_description::format

Format of the associated image. Note that it must be valid for the given attachment type.

◆ is_resolve

bool ngf_attachment_description::is_resolve

Whether the image associated with this attachment is used as an MSAA resolve target.

◆ is_sampled

bool ngf_attachment_description::is_sampled

Whether the image associated with this attachment is sampled from a shader at any point.

◆ sample_count

ngf_sample_count ngf_attachment_description::sample_count

Number of samples per pixel in the associated image.

◆ type

ngf_attachment_type ngf_attachment_description::type

What the attachment shall be used for.