Преглед изворни кода

Fix textureSize & texelFetch shader compilation errors

Yuri Roubinsky пре 5 година
родитељ
комит
433183147e
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      servers/rendering/rasterizer_rd/shader_compiler_rd.cpp

+ 2 - 0
servers/rendering/rasterizer_rd/shader_compiler_rd.cpp

@@ -1295,6 +1295,8 @@ void ShaderCompilerRD::initialize(DefaultIdentifierActions p_actions) {
 	texture_functions.insert("textureLod");
 	texture_functions.insert("textureProjLod");
 	texture_functions.insert("textureGrad");
+	texture_functions.insert("textureSize");
+	texture_functions.insert("texelFetch");
 }
 
 ShaderCompilerRD::ShaderCompilerRD() {