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

#include <shaders.h>

Public Attributes

SRPUniformuniform
 
SRPInterpolatedinterpolated
 
double fragCoord [4]
 
bool frontFacing
 
size_t primitiveID
 

Detailed Description

Member Data Documentation

◆ fragCoord

double SRPfsInput::fragCoord[4]

Window space coordinates of the fragment

◆ frontFacing

bool SRPfsInput::frontFacing

Whether or not the current primitive is facing front

◆ interpolated

SRPInterpolated* SRPfsInput::interpolated

Pointer to interpolated vertex variables

Examples
01_colored_triangle/main.c, 02_spinning_triangle/main.c, and 03_spinning_textured_cube/main.c.

◆ primitiveID

size_t SRPfsInput::primitiveID

ID of the currently processing primitive

◆ uniform

SRPUniform* SRPfsInput::uniform

Pointer to currently used shader uniform


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