Skip to content

Commit

Permalink
clean scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Sohail05 committed Apr 14, 2015
1 parent 2434de9 commit 1ea1fa5
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 343 deletions.
File renamed without changes.
7 changes: 5 additions & 2 deletions glsl.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,12 @@ def generate_versions():
"radians", "degrees", "sin", "cos", "tan", "asin",
"acos", "atan", "sinh", "cosh", "tanh","asinh", "acosh", "atanh"
] ),
( "Noise", [
"noise"
( "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"
] ),
])

generate_versions()
3 changes: 0 additions & 3 deletions opengl.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,9 +488,6 @@ def generate_versions():
"glGetFramebufferParameteriv", "glInvalidateFramebuffer", "glInvalidateSubFramebuffer",
"glSampleMaski", "glFramebufferTexture2D", "glGetFramebufferAttachmentParameteriv",
] ),
( "glsl", [
"abs", "acos", "acosh", "all", "any", "asin", "asinh", "atan", "atanh", "atomicAdd", "atomicAnd", "atomicCompSwap", "atomicCounter", "atomicCounterDecrement", "atomicCounterIncrement", "atomicExchange", "atomicMax", "atomicMin", "atomicOr", "atomicXor", "barrier", "bitCount", "bitfieldExtract", "bitfieldInsert", "bitfieldReverse", "ceil", "clamp", "cos", "cosh", "cross", "degrees", "determinant", "dFdx", "distance", "dot", "EmitStreamVertex", "EmitVertex", "EndPrimitive", "EndStreamPrimitive", "equal", "exp", "exp2", "faceforward", "findLSB", "findMSB", "floatBitsToInt", "floor", "fma", "fract", "frexp", "fwidth", "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", "greaterThan", "greaterThanEqual", "groupMemoryBarrier", "imageAtomicAdd", "imageAtomicAnd", "imageAtomicCompSwap", "imageAtomicExchange", "imageAtomicMax", "imageAtomicMin", "imageAtomicOr", "imageAtomicXor", "imageLoad", "imageSamples", "imageSize", "imageStore", "intBitsToFloat", "interpolateAtCentroid", "interpolateAtOffset", "interpolateAtSample", "inverse", "inversesqrt", "isinf", "isnan", "ldexp", "length", "lessThan", "lessThanEqual", "log", "log2", "matrixCompMult", "max", "memoryBarrier", "memoryBarrierAtomicCounter", "memoryBarrierBuffer", "memoryBarrierImage", "memoryBarrierShared", "min", "mix", "mod", "modf", "noise", "normalize", "not", "notEqual", "outerProduct", "packDouble2x32", "packHalf2x16", "packUnorm", "pow", "radians", "reflect", "refract", "round", "roundEven", "sign", "sin", "sinh", "smoothstep", "sqrt", "step", "tan", "tanh", "texelFetch", "texelFetchOffset", "texture", "textureGather", "textureGatherOffset", "textureGatherOffsets", "textureGrad", "textureGradOffset", "textureLod", "textureLodOffset", "textureOffset", "textureProj", "textureProjGrad", "textureProjGradOffset", "textureProjLod", "textureProjLodOffset", "textureProjOffset", "textureQueryLevels", "textureQueryLod", "textureSamples", "textureSize", "transpose", "trunc", "uaddCarry", "umulExtended", "unpackDouble2x32", "unpackHalf2x16", "unpackUnorm", "usubBorrow",
] ),
( "Shaders", [
"glUniform", "glGetUniform", "glBindFragDataLocation", "glGetFragDataLocation",
"glAttachShader", "glBindAttribLocation", "glCompileShader", "glCreateProgram", "glCreateShader",
Expand Down
237 changes: 21 additions & 216 deletions opengl_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -3919,8 +3919,8 @@
'glColorMaski': 'glColorMask',
'glGetBooleani_v': 'glGet',
'glGetIntegeri_v': 'glGet',
'glEnablei': 'glEnable',
'glDisablei': 'glDisable',
'glEnablei': 'glEnablei',
'glDisablei': 'glDisablei',
'glIsEnabledi': 'glIsEnabled',
'glBeginTransformFeedback': 'glBeginTransformFeedback',
'glEndTransformFeedback': 'glEndTransformFeedback',
Expand Down Expand Up @@ -4556,8 +4556,8 @@
'glColorMaski': 'glColorMask',
'glGetBooleani_v': 'glGet',
'glGetIntegeri_v': 'glGet',
'glEnablei': 'glEnable',
'glDisablei': 'glDisable',
'glEnablei': 'glEnablei',
'glDisablei': 'glDisablei',
'glIsEnabledi': 'glIsEnabled',
'glBeginTransformFeedback': 'glBeginTransformFeedback',
'glEndTransformFeedback': 'glEndTransformFeedback',
Expand Down Expand Up @@ -4855,8 +4855,8 @@
'glColorMaski': 'glColorMask',
'glGetBooleani_v': 'glGet',
'glGetIntegeri_v': 'glGet',
'glEnablei': 'glEnable',
'glDisablei': 'glDisable',
'glEnablei': 'glEnablei',
'glDisablei': 'glDisablei',
'glIsEnabledi': 'glIsEnabled',
'glBeginTransformFeedback': 'glBeginTransformFeedback',
'glEndTransformFeedback': 'glEndTransformFeedback',
Expand Down Expand Up @@ -5173,8 +5173,8 @@
'glColorMaski': 'glColorMask',
'glGetBooleani_v': 'glGet',
'glGetIntegeri_v': 'glGet',
'glEnablei': 'glEnable',
'glDisablei': 'glDisable',
'glEnablei': 'glEnablei',
'glDisablei': 'glDisablei',
'glIsEnabledi': 'glIsEnabled',
'glBeginTransformFeedback': 'glBeginTransformFeedback',
'glEndTransformFeedback': 'glEndTransformFeedback',
Expand Down Expand Up @@ -5519,8 +5519,8 @@
'glColorMaski': 'glColorMask',
'glGetBooleani_v': 'glGet',
'glGetIntegeri_v': 'glGet',
'glEnablei': 'glEnable',
'glDisablei': 'glDisable',
'glEnablei': 'glEnablei',
'glDisablei': 'glDisablei',
'glIsEnabledi': 'glIsEnabled',
'glBeginTransformFeedback': 'glBeginTransformFeedback',
'glEndTransformFeedback': 'glEndTransformFeedback',
Expand Down Expand Up @@ -5911,8 +5911,8 @@
'glColorMaski': 'glColorMask',
'glGetBooleani_v': 'glGet',
'glGetIntegeri_v': 'glGet',
'glEnablei': 'glEnable',
'glDisablei': 'glDisable',
'glEnablei': 'glEnablei',
'glDisablei': 'glDisablei',
'glIsEnabledi': 'glIsEnabled',
'glBeginTransformFeedback': 'glBeginTransformFeedback',
'glEndTransformFeedback': 'glEndTransformFeedback',
Expand Down Expand Up @@ -6391,8 +6391,8 @@
'glColorMaski': 'glColorMask',
'glGetBooleani_v': 'glGet',
'glGetIntegeri_v': 'glGet',
'glEnablei': 'glEnable',
'glDisablei': 'glDisable',
'glEnablei': 'glEnablei',
'glDisablei': 'glDisablei',
'glIsEnabledi': 'glIsEnabled',
'glBeginTransformFeedback': 'glBeginTransformFeedback',
'glEndTransformFeedback': 'glEndTransformFeedback',
Expand Down Expand Up @@ -6883,8 +6883,8 @@
'glColorMaski': 'glColorMask',
'glGetBooleani_v': 'glGet',
'glGetIntegeri_v': 'glGet',
'glEnablei': 'glEnable',
'glDisablei': 'glDisable',
'glEnablei': 'glEnablei',
'glDisablei': 'glDisablei',
'glIsEnabledi': 'glIsEnabled',
'glBeginTransformFeedback': 'glBeginTransformFeedback',
'glEndTransformFeedback': 'glEndTransformFeedback',
Expand Down Expand Up @@ -7420,8 +7420,8 @@
'glColorMaski': 'glColorMask',
'glGetBooleani_v': 'glGet',
'glGetIntegeri_v': 'glGet',
'glEnablei': 'glEnable',
'glDisablei': 'glDisable',
'glEnablei': 'glEnablei',
'glDisablei': 'glDisablei',
'glIsEnabledi': 'glIsEnabled',
'glBeginTransformFeedback': 'glBeginTransformFeedback',
'glEndTransformFeedback': 'glEndTransformFeedback',
Expand Down Expand Up @@ -7751,7 +7751,7 @@
'glGetObjectPtrLabel': 'glGetObjectPtrLabel',
'glGetPointerv': 'glGetPointerv',
'glGetPointerv': 'glGetPointerv',
'glBufferStorage': 'glBufferStorage',
'glBufferStorage': 'glBufferStorage',
'glClearTexImage': 'glClearTexImage',
'glClearTexSubImage': 'glClearTexSubImage',
'glBindBuffersBase': 'glBindBuffersBase',
Expand All @@ -7762,201 +7762,6 @@
'glBindVertexBuffers': 'glBindVertexBuffers',
},
'gl4.5': {
'abs': 'abs',
'acos': 'acos',
'acosh': 'acosh',
'all': 'all',
'any': 'any',
'asin': 'asin',
'asinh': 'asinh',
'atan': 'atan',
'atanh': 'atanh',
'atomicAdd': 'atomicAdd',
'atomicAnd': 'atomicAnd',
'atomicCompSwap': 'atomicCompSwap',
'atomicCounter': 'atomicCounter',
'atomicCounterDecrement': 'atomicCounterDecrement',
'atomicCounterIncrement': 'atomicCounterIncrement',
'atomicExchange': 'atomicExchange',
'atomicMax': 'atomicMax',
'atomicMin': 'atomicMin',
'atomicOr': 'atomicOr',
'atomicXor': 'atomicXor',
'barrier': 'barrier',
'bitCount': 'bitCount',
'bitfieldExtract': 'bitfieldExtract',
'bitfieldInsert': 'bitfieldInsert',
'bitfieldReverse': 'bitfieldReverse',
'ceil': 'ceil',
'clamp': 'clamp',
'cos': 'cos',
'cosh': 'cosh',
'cross': 'cross',
'degrees': 'degrees',
'determinant': 'determinant',
'dFdx': 'dFdx',
'dFdxCoarse': 'dFdx',
'dFdxFine': 'dFdx',
'dFdy': 'dFdx',
'dFdyCoarse': 'dFdx',
'dFdyFine': 'dFdx',
'distance': 'distance',
'dot': 'dot',
'EmitStreamVertex': 'EmitStreamVertex',
'EmitVertex': 'EmitVertex',
'EndPrimitive': 'EndPrimitive',
'EndStreamPrimitive': 'EndStreamPrimitive',
'equal': 'equal',
'exp': 'exp',
'exp2': 'exp2',
'faceforward': 'faceforward',
'findLSB': 'findLSB',
'findMSB': 'findMSB',
'floatBitsToInt': 'floatBitsToInt',
'floatBitsToUint': 'floatBitsToInt',
'floor': 'floor',
'fma': 'fma',
'fract': 'fract',
'frexp': 'frexp',
'fwidth': 'fwidth',
'fwidthCoarse': 'fwidth',
'fwidthFine': 'fwidth',
'gl_ClipDistance': 'gl_ClipDistance',
'gl_CullDistance': 'gl_CullDistance',
'gl_FragCoord': 'gl_FragCoord',
'gl_FragDepth': 'gl_FragDepth',
'gl_FrontFacing': 'gl_FrontFacing',
'gl_GlobalInvocationID': 'gl_GlobalInvocationID',
'gl_HelperInvocation': 'gl_HelperInvocation',
'gl_InstanceID': 'gl_InstanceID',
'gl_InvocationID': 'gl_InvocationID',
'gl_Layer': 'gl_Layer',
'gl_LocalInvocationID': 'gl_LocalInvocationID',
'gl_LocalInvocationIndex': 'gl_LocalInvocationIndex',
'gl_NumSamples': 'gl_NumSamples',
'gl_NumWorkGroups': 'gl_NumWorkGroups',
'gl_PatchVerticesIn': 'gl_PatchVerticesIn',
'gl_PointCoord': 'gl_PointCoord',
'gl_PointSize': 'gl_PointSize',
'gl_Position': 'gl_Position',
'gl_PrimitiveID': 'gl_PrimitiveID',
'gl_PrimitiveIDIn': 'gl_PrimitiveIDIn',
'gl_SampleID': 'gl_SampleID',
'gl_SampleMask': 'gl_SampleMask',
'gl_SampleMaskIn': 'gl_SampleMaskIn',
'gl_SamplePosition': 'gl_SamplePosition',
'gl_TessCoord': 'gl_TessCoord',
'gl_TessLevelInner': 'gl_TessLevelInner',
'gl_TessLevelOuter': 'gl_TessLevelOuter',
'gl_VertexID': 'gl_VertexID',
'gl_ViewportIndex': 'gl_ViewportIndex',
'gl_WorkGroupID': 'gl_WorkGroupID',
'gl_WorkGroupSize': 'gl_WorkGroupSize',
'greaterThan': 'greaterThan',
'greaterThanEqual': 'greaterThanEqual',
'groupMemoryBarrier': 'groupMemoryBarrier',
'imageAtomicAdd': 'imageAtomicAdd',
'imageAtomicAnd': 'imageAtomicAnd',
'imageAtomicCompSwap': 'imageAtomicCompSwap',
'imageAtomicExchange': 'imageAtomicExchange',
'imageAtomicMax': 'imageAtomicMax',
'imageAtomicMin': 'imageAtomicMin',
'imageAtomicOr': 'imageAtomicOr',
'imageAtomicXor': 'imageAtomicXor',
'imageLoad': 'imageLoad',
'imageSamples': 'imageSamples',
'imageSize': 'imageSize',
'imageStore': 'imageStore',
'imulExtended': 'umulExtended',
'intBitsToFloat': 'intBitsToFloat',
'interpolateAtCentroid': 'interpolateAtCentroid',
'interpolateAtOffset': 'interpolateAtOffset',
'interpolateAtSample': 'interpolateAtSample',
'inverse': 'inverse',
'inversesqrt': 'inversesqrt',
'isinf': 'isinf',
'isnan': 'isnan',
'ldexp': 'ldexp',
'length': 'length',
'lessThan': 'lessThan',
'lessThanEqual': 'lessThanEqual',
'log': 'log',
'log2': 'log2',
'matrixCompMult': 'matrixCompMult',
'max': 'max',
'memoryBarrier': 'memoryBarrier',
'memoryBarrierAtomicCounter': 'memoryBarrierAtomicCounter',
'memoryBarrierBuffer': 'memoryBarrierBuffer',
'memoryBarrierImage': 'memoryBarrierImage',
'memoryBarrierShared': 'memoryBarrierShared',
'min': 'min',
'mix': 'mix',
'mod': 'mod',
'modf': 'modf',
'noise': 'noise',
'noise1': 'noise',
'noise2': 'noise',
'noise3': 'noise',
'noise4': 'noise',
'normalize': 'normalize',
'not': 'not',
'notEqual': 'notEqual',
'outerProduct': 'outerProduct',
'packDouble2x32': 'packDouble2x32',
'packHalf2x16': 'packHalf2x16',
'packSnorm2x16': 'packUnorm',
'packSnorm4x8': 'packUnorm',
'packUnorm': 'packUnorm',
'packUnorm2x16': 'packUnorm',
'packUnorm4x8': 'packUnorm',
'pow': 'pow',
'radians': 'radians',
'reflect': 'reflect',
'refract': 'refract',
'round': 'round',
'roundEven': 'roundEven',
'sign': 'sign',
'sin': 'sin',
'sinh': 'sinh',
'smoothstep': 'smoothstep',
'sqrt': 'sqrt',
'step': 'step',
'tan': 'tan',
'tanh': 'tanh',
'texelFetch': 'texelFetch',
'texelFetchOffset': 'texelFetchOffset',
'texture': 'texture',
'textureGather': 'textureGather',
'textureGatherOffset': 'textureGatherOffset',
'textureGatherOffsets': 'textureGatherOffsets',
'textureGrad': 'textureGrad',
'textureGradOffset': 'textureGradOffset',
'textureLod': 'textureLod',
'textureLodOffset': 'textureLodOffset',
'textureOffset': 'textureOffset',
'textureProj': 'textureProj',
'textureProjGrad': 'textureProjGrad',
'textureProjGradOffset': 'textureProjGradOffset',
'textureProjLod': 'textureProjLod',
'textureProjLodOffset': 'textureProjLodOffset',
'textureProjOffset': 'textureProjOffset',
'textureQueryLevels': 'textureQueryLevels',
'textureQueryLod': 'textureQueryLod',
'textureSamples': 'textureSamples',
'textureSize': 'textureSize',
'transpose': 'transpose',
'trunc': 'trunc',
'uaddCarry': 'uaddCarry',
'uintBitsToFloat': 'intBitsToFloat',
'umulExtended': 'umulExtended',
'unpackDouble2x32': 'unpackDouble2x32',
'unpackHalf2x16': 'unpackHalf2x16',
'unpackSnorm2x16': 'unpackUnorm',
'unpackSnorm4x8': 'unpackUnorm',
'unpackUnorm': 'unpackUnorm',
'unpackUnorm2x16': 'unpackUnorm',
'unpackUnorm4x8': 'unpackUnorm',
'usubBorrow': 'usubBorrow',
'glCullFace': 'glCullFace',
'glFrontFace': 'glFrontFace',
'glHint': 'glHint',
Expand Down Expand Up @@ -8161,8 +7966,8 @@
'glColorMaski': 'glColorMask',
'glGetBooleani_v': 'glGet',
'glGetIntegeri_v': 'glGet',
'glEnablei': 'glEnable',
'glDisablei': 'glDisable',
'glEnablei': 'glEnablei',
'glDisablei': 'glDisablei',
'glIsEnabledi': 'glIsEnabled',
'glBeginTransformFeedback': 'glBeginTransformFeedback',
'glEndTransformFeedback': 'glEndTransformFeedback',
Expand Down
Loading

0 comments on commit 1ea1fa5

Please sign in to comment.