srp
software rendering pipeline
Loading...
Searching...
No Matches
SRPFragmentShaderIn Struct Reference

#include <shaders.h>

Public Attributes

SRPUniformuniform
 
SRPInterpolatedvaryings
 
float fragCoord [4]
 
bool frontFacing
 
size_t primitiveID
 

Detailed Description

Holds inputs to fragment shader

See also
SRPFragmentShader

Member Data Documentation

◆ fragCoord

float SRPFragmentShaderIn::fragCoord[4]

Window space coordinates of the fragment

◆ frontFacing

bool SRPFragmentShaderIn::frontFacing

Whether or not the current primitive is facing front

◆ primitiveID

size_t SRPFragmentShaderIn::primitiveID

ID of the currently processing primitive

◆ uniform

SRPUniform* SRPFragmentShaderIn::uniform

Pointer to currently used shader uniform

◆ varyings

SRPInterpolated* SRPFragmentShaderIn::varyings

Pointer to interpolated vertex variables


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