浏览代码

Merge pull request #42962 from Chaosus/fix_shader_texture_funcs

Fix textureSize & texelFetch shader compilation errors
Yuri Roubinsky 4 年之前
父节点
当前提交
c97dea47b5
共有 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() {