Skip to content

Commit

Permalink
Work on categories a little bit, remove old files.
Browse files Browse the repository at this point in the history
  • Loading branch information
BSVino committed May 10, 2015
1 parent 2786319 commit ca7437d
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 384 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/*.pyc
/html/copy/jquery-ui.min.js
/html/copy/jquery.min.js
.DS_Store
101 changes: 58 additions & 43 deletions glsl.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,59 +148,74 @@ def generate_versions():
( "Exponential", [
"pow", "exp", "log", "exp2", "log2", "sqrt", "inversesqrt"
] ),
( "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"
( "Mathematics", [
"abs", "sign", "floor", "trunc", "round", "roundEven", "ceil",
"floor", "fract", "mod", "modf", "min", "max", "clamp", "mix",
"step", "smoothstep", "isnan", "isinf", "fma",
"dFdx", "fwidth", "noise"
] ),
( "Floating-Point Pack/Unpack", [
"packDouble2x32","packHalf2x16","packUnorm","unpackDouble2x32","unpackHalf2x16","unpackUnorm"
( "Floating-Point", [
"packDouble2x32","packHalf2x16","packUnorm","unpackDouble2x32",
"unpackHalf2x16","unpackUnorm","floatBitsToInt", "intBitsToFloat",
"frexp", "ldexp"
] ),
( "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"
"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"
] ),
( "Geometric", [
"length", "distance", "dot", "cross", "normalize", "faceforward", "reflect", "refract"
( "Vector", [
"length", "distance", "dot", "cross", "normalize", "faceforward",
"reflect", "refract", "equal", "notEqual"
] ),
( "Component Comparison", [
'all', 'any', 'lessThan', 'lessThanEqual', 'greaterThan',
'greaterThanEqual', 'not'
] ),
( "Geometry Shader", [
'EmitStreamVertex', 'EmitVertex', 'EndPrimitive',
'EndStreamPrimitive'
] ),
( "Texture Sampling", [
'texture', 'textureGather', 'textureGatherOffset',
'textureGatherOffsets', 'textureGrad',
'textureGradOffset', 'textureLod', 'textureLodOffset',
'textureOffset', 'textureProj', 'textureProjGrad',
'textureProjGradOffset', 'textureProjLod', 'textureProjLodOffset',
'textureProjOffset', 'textureQueryLevels', 'textureQueryLod',
'textureSamples', 'textureSize', 'texelFetch', 'texelFetchOffset',
'interpolateAtCentroid', 'interpolateAtOffset', 'interpolateAtSample'
] ),
( "Matrix", [
'determinant', 'inverse', 'matrixCompMult',
'outerProduct', 'transpose', 'groupMemoryBarrier'
] ),
( "Integer", [
'umulExtended', 'bitfieldExtract', 'bitfieldInsert', 'usubBorrow',
'bitfieldReverse', 'bitCount', 'findLSB', 'findMSB', 'uaddCarry',
] ),
( "Image", [
'imageAtomicAdd', 'imageAtomicAnd', 'imageAtomicCompSwap', 'imageAtomicExchange', 'imageAtomicMax', 'imageAtomicMin', 'imageAtomicOr', 'imageAtomicXor', 'imageLoad', 'imageSamples', 'imageSize', 'imageStore'
] ),
( "Geometry Shader", [
'EmitStreamVertex', 'EmitVertex', 'EndPrimitive', 'EndStreamPrimitive'
'imageAtomicAdd', 'imageAtomicAnd', 'imageAtomicCompSwap',
'imageAtomicExchange', 'imageAtomicMax', 'imageAtomicMin',
'imageAtomicOr', 'imageAtomicXor', 'imageLoad', 'imageSamples',
'imageSize', 'imageStore'
] ),
( "Atomic", [
'atomicAdd', 'atomicAnd', 'atomicCompSwap', 'atomicCounter', 'atomicCounterDecrement', 'atomicCounterIncrement', 'atomicExchange', 'atomicMax', 'atomicMin', 'atomicOr', 'atomicXor'
'atomicAdd', 'atomicAnd', 'atomicCompSwap', 'atomicCounter',
'atomicCounterDecrement', 'atomicCounterIncrement', 'atomicExchange',
'atomicMax', 'atomicMin', 'atomicOr', 'atomicXor'
] ),
( "Vector", [
'all', 'any', 'equal', 'lessThan', 'lessThanEqual', 'greaterThan', 'greaterThanEqual', 'not', 'notEqual'
] ),
( "Integer", [
'umulExtended', 'bitfieldExtract', 'bitfieldInsert', 'bitfieldReverse', 'bitCount', 'findLSB', 'findMSB'
] ),
( "Texture", [
'texture', 'textureGather', 'textureGatherOffset', 'textureGatherOffsets', 'textureGrad', 'textureGradOffset', 'textureLod', 'textureLodOffset', 'textureOffset', 'textureProj', 'textureProjGrad', 'textureProjGradOffset', 'textureProjLod', 'textureProjLodOffset', 'textureProjOffset', 'textureQueryLevels', 'textureQueryLod', 'textureSamples', 'textureSize'
] ),
( "Memory Barrier", [
'memoryBarrier', 'memoryBarrierAtomicCounter', 'memoryBarrierBuffer', 'memoryBarrierImage'
] ),
'memoryBarrier', 'memoryBarrierAtomicCounter', 'memoryBarrierBuffer',
'memoryBarrierImage', 'barrier', 'groupMemoryBarrier',
'memoryBarrierShared'
] ),
])

# Functions left to categorize

#barrier
#dFdx
#determinant
#floatBitsToint
#fwidth
#groupMemoryBarrier
#interpolateAtCentroid
#interpolateAtOffset
#interpolateAtSample
#inverse
#matrixCompMult
#outerProduct
#texelFetch
#texelFetchOffset
#transpose
#uaddCarry
#usubBorrow

generate_versions()
18 changes: 9 additions & 9 deletions glsl_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
'findLSB': 'findLSB',
'findMSB': 'findMSB',
'floatBitsToInt': 'floatBitsToInt',
'floatBitsToUint': 'floatBitsToint',
'floatBitsToUint': 'floatBitsToInt',
'floor': 'floor',
'fma': 'fma',
'fract': 'fract',
Expand Down Expand Up @@ -267,7 +267,7 @@
'findLSB': 'findLSB',
'findMSB': 'findMSB',
'floatBitsToInt': 'floatBitsToInt',
'floatBitsToUint': 'floatBitsToint',
'floatBitsToUint': 'floatBitsToInt',
'floor': 'floor',
'fma': 'fma',
'fract': 'fract',
Expand Down Expand Up @@ -443,7 +443,7 @@
'findLSB': 'findLSB',
'findMSB': 'findMSB',
'floatBitsToInt': 'floatBitsToInt',
'floatBitsToUint': 'floatBitsToint',
'floatBitsToUint': 'floatBitsToInt',
'floor': 'floor',
'fma': 'fma',
'fract': 'fract',
Expand Down Expand Up @@ -586,7 +586,7 @@
'exp2': 'exp2',
'faceforward': 'faceforward',
'floatBitsToInt': 'floatBitsToInt',
'floatBitsToUint': 'floatBitsToint',
'floatBitsToUint': 'floatBitsToInt',
'floor': 'floor',
'fract': 'fract',
'fwidth': 'fwidth',
Expand Down Expand Up @@ -708,7 +708,7 @@
'findLSB': 'findLSB',
'findMSB': 'findMSB',
'floatBitsToInt': 'floatBitsToInt',
'floatBitsToUint': 'floatBitsToint',
'floatBitsToUint': 'floatBitsToInt',
'floor': 'floor',
'fma': 'fma',
'fract': 'fract',
Expand Down Expand Up @@ -866,7 +866,7 @@
'findLSB': 'findLSB',
'findMSB': 'findMSB',
'floatBitsToInt': 'floatBitsToInt',
'floatBitsToUint': 'floatBitsToint',
'floatBitsToUint': 'floatBitsToInt',
'floor': 'floor',
'fma': 'fma',
'fract': 'fract',
Expand Down Expand Up @@ -1226,7 +1226,7 @@
'findLSB': 'findLSB',
'findMSB': 'findMSB',
'floatBitsToInt': 'floatBitsToInt',
'floatBitsToUint': 'floatBitsToint',
'floatBitsToUint': 'floatBitsToInt',
'floor': 'floor',
'fma': 'fma',
'fract': 'fract',
Expand Down Expand Up @@ -1399,7 +1399,7 @@
'exp2': 'exp2',
'faceforward': 'faceforward',
'floatBitsToInt': 'floatBitsToInt',
'floatBitsToUint': 'floatBitsToint',
'floatBitsToUint': 'floatBitsToInt',
'floor': 'floor',
'fract': 'fract',
'fwidth': 'fwidth',
Expand Down Expand Up @@ -1531,7 +1531,7 @@
'findLSB': 'findLSB',
'findMSB': 'findMSB',
'floatBitsToInt': 'floatBitsToInt',
'floatBitsToUint': 'floatBitsToint',
'floatBitsToUint': 'floatBitsToInt',
'floor': 'floor',
'fma': 'fma',
'fract': 'fract',
Expand Down
182 changes: 0 additions & 182 deletions html_index/index_all.html

This file was deleted.

Loading

0 comments on commit ca7437d

Please sign in to comment.