nicegraf
ngf_specialization_info Struct Reference

Data Fields

const ngf_constant_specializationspecializations
 
uint32_t nspecializations
 
const void * value_buffer
 

Detailed Description

Sets specialization constant values for a pipeline. Specialization constants are a kind of shader constant whose values can be set at pipeline creation time. The shaders that run as part of said pipeline will then see the provided values during execution.

Field Documentation

◆ nspecializations

uint32_t ngf_specialization_info::nspecializations

Number of specialization entries.

◆ specializations

const ngf_constant_specialization* ngf_specialization_info::specializations

List of specialization entries.

◆ value_buffer

const void* ngf_specialization_info::value_buffer

Pointer to a buffer containing the values for the specialization constants.