Skip to content

Commit

Permalink
update spirv-cross
Browse files Browse the repository at this point in the history
  • Loading branch information
Try committed Feb 10, 2024
1 parent 4379099 commit c9c8680
Show file tree
Hide file tree
Showing 5 changed files with 1,267 additions and 600 deletions.
3 changes: 2 additions & 1 deletion Engine/thirdparty/spirv_cross/spirv_common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,8 @@ struct SPIRType : IVariant
// Keep internal types at the end.
ControlPointArray,
Interpolant,
Char
Char,
Meshlet
};

// Scalar/vector/matrix support.
Expand Down
4 changes: 4 additions & 0 deletions Engine/thirdparty/spirv_cross/spirv_glsl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16196,6 +16196,10 @@ void CompilerGLSL::emit_function(SPIRFunction &func, const Bitset &return_flags)
{
auto &var = get<SPIRVariable>(v);
var.deferred_declaration = false;
if (var.storage == StorageClassTaskPayloadWorkgroupEXT)
{
continue;
}

if (variable_decl_is_remapped_storage(var, StorageClassWorkgroup))
{
Expand Down
2 changes: 1 addition & 1 deletion Engine/thirdparty/spirv_cross/spirv_glsl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ class CompilerGLSL : public Compiler
uint32_t to_array_size_literal(const SPIRType &type, uint32_t index) const;
uint32_t to_array_size_literal(const SPIRType &type) const;
virtual std::string variable_decl(const SPIRVariable &variable); // Threadgroup arrays can't have a wrapper type
std::string variable_decl_function_local(SPIRVariable &variable);
virtual std::string variable_decl_function_local(SPIRVariable &variable);

void add_local_variable_name(uint32_t id);
void add_resource_name(uint32_t id);
Expand Down
Loading

0 comments on commit c9c8680

Please sign in to comment.