This commit is contained in:
Peter Li 2025-04-16 23:00:42 -07:00
parent 69df1ea67e
commit ed3eb8ac83
1 changed files with 9 additions and 7 deletions

View File

@ -48,15 +48,17 @@ pub const BufferInfo = shaderTypes.BufferInfo;
types = reflect['types']
storageIndex = 0
for ssbo in reflect['ssbos']:
zs = parseTypeToZig(types, ssbo['type'], "storage", storageIndex)
storageIndex += 1
ostring += zs + "\n"
if 'ssbos' in reflect:
for ssbo in reflect['ssbos']:
zs = parseTypeToZig(types, ssbo['type'], "storage", storageIndex)
storageIndex += 1
ostring += zs + "\n"
uniformIndex = 0
for uniform in reflect['ubos']:
zs = parseTypeToZig(types, uniform['type'], "uniform", uniformIndex)
ostring += zs + "\n"
if 'ubos' in reflect:
for uniform in reflect['ubos']:
zs = parseTypeToZig(types, uniform['type'], "uniform", uniformIndex)
ostring += zs + "\n"
zs = "pub const LoadArgs = shaderTypes.ShaderLoadArgs{"