GPU: GLSL-C++ compilation stubs #4

Closed
Clément Foucault wants to merge 38 commits from glsl-cpp-stubs-2 into glsl-include

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit ae91a46e37 - Show all commits

View File

@ -495,3 +495,26 @@ template<typename T, int C, int R> float determinant(MatBase<T, C, R>) {}
template<typename T, int C, int R> MatBase<T, C, R> inverse(MatBase<T, C, R>) {} template<typename T, int C, int R> MatBase<T, C, R> inverse(MatBase<T, C, R>) {}
template<typename T, int C, int R> MatBase<T, R, C> transpose(MatBase<T, C, R>) {} template<typename T, int C, int R> MatBase<T, R, C> transpose(MatBase<T, C, R>) {}
#endif #endif
/* Vertex Shader Special Variables. */
const int gl_VertexID;
const int gl_InstanceID;
const int gl_BaseVertex;
const int gl_BaseInstance;
float4 gl_Position;
float gl_PointSize;
/* Fragment Shader Special Variables. */
const float4 gl_FragCoord;
const bool gl_FrontFacing;
const float2 gl_PointCoord;
const int gl_PrimitiveID;
float gl_FragDepth;
/* Read-only in Fragment Shader and write-only in vertex shader. */
float gl_ClipDistance[];
float gl_CullDistance[];
/* Use GPU variant as they can be emulated. */
int gpu_Layer;
int gpu_ViewportIndex;
/* Keywords. */
void discard;