ReShade
A generic post-processing injector for games and video software.
Public Attributes | List of all members
reshade::api::shader_desc Struct Reference

Describes a shader object. More...

#include <reshade_api_pipeline.hpp>

Public Attributes

const void * code
 Shader source code or binary. More...
 
size_t code_size
 Size (in bytes) of the shader source code or binary. More...
 
const char * entry_point
 Optional entry point name if the shader source code or binary contains multiple entry points. Can be nullptr if it does not, or to use the default "main" entry point. More...
 
uint32_t spec_constants
 Number of entries in the spec_constant_ids and spec_constant_values arrays. This is meaningful only when the shader binary is a SPIR-V module and is ignored otherwise. More...
 
const uint32_t * spec_constant_ids
 Pointer to an array of specialization constant indices. More...
 
const uint32_t * spec_constant_values
 Pointer to an array of constant values, one for each specialization constant index in spec_constant_ids. More...
 

Detailed Description

Describes a shader object.

Member Data Documentation

◆ code

const void* reshade::api::shader_desc::code

Shader source code or binary.

◆ code_size

size_t reshade::api::shader_desc::code_size

Size (in bytes) of the shader source code or binary.

◆ entry_point

const char* reshade::api::shader_desc::entry_point

Optional entry point name if the shader source code or binary contains multiple entry points. Can be nullptr if it does not, or to use the default "main" entry point.

◆ spec_constant_ids

const uint32_t* reshade::api::shader_desc::spec_constant_ids

Pointer to an array of specialization constant indices.

◆ spec_constant_values

const uint32_t* reshade::api::shader_desc::spec_constant_values

Pointer to an array of constant values, one for each specialization constant index in spec_constant_ids.

◆ spec_constants

uint32_t reshade::api::shader_desc::spec_constants

Number of entries in the spec_constant_ids and spec_constant_values arrays. This is meaningful only when the shader binary is a SPIR-V module and is ignored otherwise.


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