Skip to content

Commit

Permalink
Add Category "Built-In Variables"
Browse files Browse the repository at this point in the history
  • Loading branch information
Sohail05 committed Apr 14, 2015
1 parent 1ea1fa5 commit e7c76ac
Showing 1 changed file with 102 additions and 0 deletions.
102 changes: 102 additions & 0 deletions glsl.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,108 @@ def generate_versions():
( "Common", [
"abs", "sign", "floor", "trunc", "round", "roundEven", "ceil", "floor", "fract", "mod", "modf", "min", "max", "clamp", "mix", "step", "smoothstep", "isnan", "isinf", "floatBitsToInt", "intBitsToFloat", "fma", "frexp", "ldexp"
] ),
( "Floating-Point Pack/Unpack", [
"packDouble2x32","packHalf2x16","packUnorm","unpackDouble2x32","unpackHalf2x16","unpackUnorm"
] ),
( "Built-In Variables", [
"gl_ClipDistance", "gl_CullDistance", "gl_FragCoord", "gl_FragDepth", "gl_FrontFacing", "gl_GlobalInvocationID", "gl_HelperInvocation", "gl_InstanceID", "gl_InvocationID", "gl_Layer", "gl_LocalInvocationID", "gl_LocalInvocationIndex", "gl_NumSamples", "gl_NumWorkGroups", "gl_PatchVerticesIn", "gl_PointCoord", "gl_PointSize", "gl_Position", "gl_PrimitiveID", "gl_PrimitiveIDIn", "gl_SampleID", "gl_SampleMask", "gl_SampleMaskIn", "gl_SamplePosition", "gl_TessCoord", "gl_TessLevelInner", "gl_TessLevelOuter", "gl_VertexID", "gl_ViewportIndex", "gl_WorkGroupID", "gl_WorkGroupSize"
] ),
])

# Functions left to categorize

#EmitStreamVertex
#EmitVertex
#EndPrimitive
#EndStreamPrimitive
#all
#any
#atomicAdd
#atomicAnd
#atomicCompSwap
#atomicCounter
#atomicCounterDecrement
#atomicCounterIncrement
#atomicExchange
#atomicMax
#atomicMin
#atomicOr
#atomicXor
#barrier
#bitCount
#bitfieldExtract
#bitfieldInsert
#bitfieldReverse
#cross
#dFdx
#determinant
#distance
#dot
#equal
#faceforward
#findLSB
#findMSB
#floatBitsToint
#fwidth
#greaterThan
#greaterThanEqual
#groupMemoryBarrier
#imageAtomicAdd
#imageAtomicAnd
#imageAtomicCompSwap
#imageAtomicExchange
#imageAtomicMax
#imageAtomicMin
#imageAtomicOr
#imageAtomicXor
#imageLoad
#imageSamples
#imageSize
#imageStore
#interpolateAtCentroid
#interpolateAtOffset
#interpolateAtSample
#inverse
#length
#lessThan
#lessThanEqual
#matrixCompMult
#memoryBarrier
#memoryBarrierAtomicCounter
#memoryBarrierBuffer
#memoryBarrierImage
#memoryBarrierShared
#noise
#normalize
#not
#notEqual
#outerProduct
#reflect
#refract
#texelFetch
#texelFetchOffset
#texture
#textureGather
#textureGatherOffset
#textureGatherOffsets
#textureGrad
#textureGradOffset
#textureLod
#textureLodOffset
#textureOffset
#textureProj
#textureProjGrad
#textureProjGradOffset
#textureProjLod
#textureProjLodOffset
#textureProjOffset
#textureQueryLevels
#textureQueryLod
#textureSamples
#textureSize
#transpose
#uaddCarry
#umulExtended
#usubBorrow

generate_versions()

0 comments on commit e7c76ac

Please sign in to comment.