Trying to fix metal shader compilation

This commit is contained in:
Dynamitos
2024-04-19 18:23:36 +02:00
parent 21636f2460
commit 194a0e8b91
43 changed files with 353 additions and 183 deletions
+6 -4
View File
@@ -115,6 +115,7 @@ struct ShaderBufferCreateInfo
uint8 dynamic = 0;
std::string name;
};
DECLARE_NAME_REF(Gfx, PipelineLayout)
struct ShaderCreateInfo
{
std::string mainModule;
@@ -123,6 +124,7 @@ struct ShaderCreateInfo
std::string entryPoint;
Array<Pair<const char*, const char*>> typeParameter;
Map<const char*, const char*> defines;
Gfx::PPipelineLayout rootSignature;
};
struct VertexInputBinding
{
@@ -218,7 +220,7 @@ struct LegacyPipelineCreateInfo
PVertexShader vertexShader;
PFragmentShader fragmentShader;
PRenderPass renderPass;
OPipelineLayout pipelineLayout;
PPipelineLayout pipelineLayout;
MultisampleState multisampleState;
RasterizationState rasterizationState;
DepthStencilState depthStencilState;
@@ -235,7 +237,7 @@ struct MeshPipelineCreateInfo
PMeshShader meshShader;
PFragmentShader fragmentShader;
PRenderPass renderPass;
OPipelineLayout pipelineLayout;
PPipelineLayout pipelineLayout;
MultisampleState multisampleState;
RasterizationState rasterizationState;
DepthStencilState depthStencilState;
@@ -248,11 +250,11 @@ struct MeshPipelineCreateInfo
struct ComputePipelineCreateInfo
{
Gfx::PComputeShader computeShader;
Gfx::OPipelineLayout pipelineLayout;
Gfx::PPipelineLayout pipelineLayout;
ComputePipelineCreateInfo();
ComputePipelineCreateInfo(ComputePipelineCreateInfo&& rhs) = default;
ComputePipelineCreateInfo& operator=(ComputePipelineCreateInfo&& rhs) = default;
~ComputePipelineCreateInfo();
};
} // namespace Gfx
} // namespace Seele
} // namespace Seele