ObjectivelyGPU
Object oriented graphics framework for SDL3 and C
Loading...
Searching...
No Matches
GPU_ShaderFormat Struct Reference

Metadata for a shader binary format: its SDL enum, the file extension of the transpiled blob, and the entry-point name the toolchain emits for each stage. shadercross names every MSL (and hence metallib) entry point "main0"; SPIR-V and DXIL keep the GLSL/HLSL default "main". More...

Data Fields

SDL_GPUShaderFormat format
 
const char * ext
 
const char * vertexEntrypoint
 
const char * fragmentEntrypoint
 
const char * computeEntrypoint
 

Detailed Description

Metadata for a shader binary format: its SDL enum, the file extension of the transpiled blob, and the entry-point name the toolchain emits for each stage. shadercross names every MSL (and hence metallib) entry point "main0"; SPIR-V and DXIL keep the GLSL/HLSL default "main".

See also
RenderDevice::loadShader

Field Documentation

◆ computeEntrypoint

const char* GPU_ShaderFormat::computeEntrypoint

◆ ext

const char* GPU_ShaderFormat::ext

◆ format

SDL_GPUShaderFormat GPU_ShaderFormat::format

◆ fragmentEntrypoint

const char* GPU_ShaderFormat::fragmentEntrypoint

◆ vertexEntrypoint

const char* GPU_ShaderFormat::vertexEntrypoint

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