diff options
author | Yuri Roubinsky <chaosus89@gmail.com> | 2020-01-17 22:35:22 +0300 |
---|---|---|
committer | Yuri Roubinsky <chaosus89@gmail.com> | 2020-02-11 20:00:42 +0300 |
commit | 6f162395ffb5f54a8530172621c2978b6f0cb4eb (patch) | |
tree | db58eda11fbb029e6dda64f421aa41e9a165a687 /drivers/gles2/rasterizer_storage_gles2.cpp | |
parent | 1eb424ec9549bdd086dfb54c847d107519be73d9 (diff) |
Implementation of 'struct' for shaders
Diffstat (limited to 'drivers/gles2/rasterizer_storage_gles2.cpp')
-rw-r--r-- | drivers/gles2/rasterizer_storage_gles2.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gles2/rasterizer_storage_gles2.cpp b/drivers/gles2/rasterizer_storage_gles2.cpp index 23fc280d91..245531a935 100644 --- a/drivers/gles2/rasterizer_storage_gles2.cpp +++ b/drivers/gles2/rasterizer_storage_gles2.cpp @@ -1636,6 +1636,9 @@ void RasterizerStorageGLES2::shader_get_param_list(RID p_shader, List<PropertyIn pi.name = E->get(); switch (u.type) { + case ShaderLanguage::TYPE_STRUCT: { + pi.type = Variant::ARRAY; + } break; case ShaderLanguage::TYPE_VOID: { pi.type = Variant::NIL; } break; |