srp
software rendering pipeline
Loading...
Searching...
No Matches
interpolation.h
Go to the documentation of this file.
1// Software Rendering Pipeline (SRP) library
2// Licensed under GNU GPLv3
3
8#pragma once
9
10#include "srp/shaders.h"
11#include "srp/vec.h"
12
25 SRPVertexShaderOut* vertices, const float* weights, const float* invW,
26 const SRPShaderProgram* sp, float* depth, float* reciprocalInterpolatedInvW
27);
28
38 SRPVertexShaderOut* vertices, const float* weights, const float* invW,
39 const SRPShaderProgram* sp, float* depth, float* reciprocalInterpolatedInvW
40);
41
51 SRPVertexShaderOut* vertices, size_t nVertices, const float* weights,
52 const float* invW, float reciprocalInterpolatedInvW,
53 const SRPShaderProgram* sp, SRPInterpolated* pOutput
54);
55
// ingroup Interpolation
void interpolateDepthAndWTriangle(SRPVertexShaderOut *vertices, const float *weights, const float *invW, const SRPShaderProgram *sp, float *depth, float *reciprocalInterpolatedInvW)
Definition interpolation.c:34
void interpolateDepthAndWLine(SRPVertexShaderOut *vertices, const float *weights, const float *invW, const SRPShaderProgram *sp, float *depth, float *reciprocalInterpolatedInvW)
Definition interpolation.c:49
void interpolateAttributes(SRPVertexShaderOut *vertices, size_t nVertices, const float *weights, const float *invW, float reciprocalInterpolatedInvW, const SRPShaderProgram *sp, SRPInterpolated *pOutput)
Definition interpolation.c:93
Definition shaders.h:93
Definition shaders.h:34
struct SRPInterpolated SRPInterpolated
Definition vertex.h:46