Shader compilation, uniforms, vertex buffers and notes.
This commit is contained in:
12
site_scons/site_tools/glslang.py
Normal file
12
site_scons/site_tools/glslang.py
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
from SCons.Script import *
|
||||
|
||||
def exists(env: Environment) -> bool:
|
||||
return True
|
||||
|
||||
def generate(env : Environment):
|
||||
glslang_spv_builder = Builder(
|
||||
action = '$GLSLANG -V -o $TARGET $SOURCE'
|
||||
)
|
||||
env['GLSLANG'] = 'glslang'
|
||||
env.Append(BUILDERS={'SpirV': glslang_spv_builder})
|
||||
Reference in New Issue
Block a user