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

Describes a single element in the vertex layout for the input-assembler stage. More...

#include <reshade_api_pipeline.hpp>

Public Attributes

uint32_t location
 GLSL attribute location associated with this element (layout(location = X)). More...
 
const char * semantic
 HLSL semantic associated with this element. More...
 
uint32_t semantic_index
 Optional index for the HLSL semantic (e.g. for "TEXCOORD1" set semantic to "TEXCOORD" and semantic_index to 1). More...
 
format format
 Format of the element data. More...
 
uint32_t buffer_binding
 Index of the vertex buffer binding. More...
 
uint32_t offset
 Offset (in bytes) from the start of the vertex to this element. More...
 
uint32_t stride
 Stride of the entire vertex (this has to be consistent for all elements per vertex buffer binding). Set to zero in case this is unknown. More...
 
uint32_t instance_step_rate
 Number of instances to draw using the same per-instance data before advancing by one element. This has to be consistent for all elements per vertex buffer binding. Set to zero to indicate that this element is per-vertex rather than per-instance. More...
 

Detailed Description

Describes a single element in the vertex layout for the input-assembler stage.

Member Data Documentation

◆ buffer_binding

uint32_t reshade::api::input_element::buffer_binding

Index of the vertex buffer binding.

◆ format

format reshade::api::input_element::format

Format of the element data.

◆ instance_step_rate

uint32_t reshade::api::input_element::instance_step_rate

Number of instances to draw using the same per-instance data before advancing by one element. This has to be consistent for all elements per vertex buffer binding. Set to zero to indicate that this element is per-vertex rather than per-instance.

◆ location

uint32_t reshade::api::input_element::location

GLSL attribute location associated with this element (layout(location = X)).

◆ offset

uint32_t reshade::api::input_element::offset

Offset (in bytes) from the start of the vertex to this element.

◆ semantic

const char* reshade::api::input_element::semantic

HLSL semantic associated with this element.

◆ semantic_index

uint32_t reshade::api::input_element::semantic_index

Optional index for the HLSL semantic (e.g. for "TEXCOORD1" set semantic to "TEXCOORD" and semantic_index to 1).

◆ stride

uint32_t reshade::api::input_element::stride

Stride of the entire vertex (this has to be consistent for all elements per vertex buffer binding). Set to zero in case this is unknown.


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