[Vulkan] Samplerless texelFetch

This commit is contained in:
Triang3l
2022-03-27 00:09:44 +03:00
parent 67a0ccb7c0
commit 2cd6c31998
26 changed files with 9449 additions and 9509 deletions

View File

@@ -1014,12 +1014,13 @@ class BuildShadersCommand(Command):
'ps': 'frag',
'cs': 'comp',
}
# #version must be before everything else in a GLSL file, can't use
# a language conditional to add it. Use string interpolation to
# insert the file name. Using #include also preserves line numbers
# in error and warning messages.
# #version and extensions must be before everything else in a GLSL
# file, can't use a language conditional to add them. Use string
# interpolation to insert the file name. Using #include also
# preserves line numbers in error and warning messages.
spirv_xesl_wrapper = \
'#version 460\n' + \
'#extension GL_EXT_samplerless_texture_functions : require\n' + \
'#extension GL_GOOGLE_include_directive : require\n' + \
'#include "%s"\n'
for src_path in src_paths: