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

#include <line.h>

Collaboration diagram for SRPLine:

Public Attributes

SRPVertexShaderOut v [2]
 
vec3 ss [2]
 
float invW [2]
 
size_t id
 

Detailed Description

Line primitive. Stores data needed for its rasterization

Member Data Documentation

◆ id

size_t SRPLine::id

ID of the primitive, starting from 0

◆ invW

float SRPLine::invW[2]

1 / clip-space W. Needed for perspective-correct interpolation

◆ ss

vec3 SRPLine::ss[2]

Vertices' positions in screen-space

◆ v

SRPVertexShaderOut SRPLine::v[2]

Outputs of the vertex shader


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