Skip to content

Commit

Permalink
Update Category
Browse files Browse the repository at this point in the history
  • Loading branch information
Sohail05 committed May 2, 2015
1 parent 6da7642 commit a428d70
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 23 deletions.
27 changes: 14 additions & 13 deletions compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,19 +576,20 @@ def spew_category(name, commands, current_command, api):
latest_present = versions_available[-1][0:3]

commands_list += "<li><a class='rewritelink " + classes + "'>" + command + "</a></li>"

if commands != unhandled_commands:
try:
unhandled_commands.remove(command)
except:
pass

if commands != glsl_unhandled_commands:
try:
glsl_unhandled_commands.remove(command)
except:
pass

if api == "gl":
if commands != unhandled_commands:
try:
unhandled_commands.remove(command)
except:
pass

if api == "sl":
if commands != glsl_unhandled_commands:
try:
glsl_unhandled_commands.remove(command)
except:
pass

classes = "category"
if found_current_command:
classes += " open_me"
Expand Down
17 changes: 7 additions & 10 deletions glsl.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ 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", [
( "Floating-Point Packing", [
"packDouble2x32","packHalf2x16","packUnorm","unpackDouble2x32","unpackHalf2x16","unpackUnorm"
] ),
( "Built-In Variables", [
Expand All @@ -175,31 +175,28 @@ def generate_versions():
( "Integer", [
'umulExtended', 'bitfieldExtract', 'bitfieldInsert', 'bitfieldReverse', 'bitCount', 'findLSB', 'findMSB'
] ),
( "Texture", [
( "Texture Sampling", [
'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'
] ),
'barrier', 'memoryBarrier', 'memoryBarrierAtomicCounter', 'memoryBarrierBuffer', 'memoryBarrierImage', 'groupMemoryBarrier'
] ),
( "Matrix", [
'determinant', 'inverse', 'outerProduct', 'transpose', 'matrixCompMult'
] ),
])

# Functions left to categorize

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

Expand Down

0 comments on commit a428d70

Please sign in to comment.