diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-07-26 17:09:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-26 17:09:48 +0200 |
commit | 8f6c16e4a459b54d6b37bc64e0bd21a361078a01 (patch) | |
tree | 1dd41569f1f99c5eb6f00cf45907a7035e0ff900 /editor/plugins/shader_file_editor_plugin.cpp | |
parent | bf4dba5ff4e0daaa87f345e1f7ef27058d6803a5 (diff) | |
parent | cf3f404d312146cf46ae27fd8d220852eac27eb9 (diff) |
Merge pull request #50847 from reduz/implement-binary-shader-compilation
Implement Binary Shader Compilation
Diffstat (limited to 'editor/plugins/shader_file_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/shader_file_editor_plugin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/plugins/shader_file_editor_plugin.cpp b/editor/plugins/shader_file_editor_plugin.cpp index 66d2b36be1..1e62261244 100644 --- a/editor/plugins/shader_file_editor_plugin.cpp +++ b/editor/plugins/shader_file_editor_plugin.cpp @@ -55,7 +55,7 @@ void ShaderFileEditor::_version_selected(int p_option) { RD::ShaderStage stage = RD::SHADER_STAGE_MAX; int first_found = -1; - Ref<RDShaderBytecode> bytecode = shader_file->get_bytecode(version_txt); + Ref<RDShaderSPIRV> bytecode = shader_file->get_spirv(version_txt); ERR_FAIL_COND(bytecode.is_null()); for (int i = 0; i < RD::SHADER_STAGE_MAX; i++) { @@ -142,7 +142,7 @@ void ShaderFileEditor::_update_options() { Ref<Texture2D> icon; - Ref<RDShaderBytecode> bytecode = shader_file->get_bytecode(version_list[i]); + Ref<RDShaderSPIRV> bytecode = shader_file->get_spirv(version_list[i]); ERR_FAIL_COND(bytecode.is_null()); bool failed = false; @@ -175,7 +175,7 @@ void ShaderFileEditor::_update_options() { return; } - Ref<RDShaderBytecode> bytecode = shader_file->get_bytecode(current_version); + Ref<RDShaderSPIRV> bytecode = shader_file->get_spirv(current_version); ERR_FAIL_COND(bytecode.is_null()); int first_valid = -1; int current = -1; |