removing layout qualifier
This commit is contained in:
+1
-1
@@ -5,4 +5,4 @@
|
|||||||
path = external/vcpkg
|
path = external/vcpkg
|
||||||
url = https://github.com/Microsoft/vcpkg.git
|
url = https://github.com/Microsoft/vcpkg.git
|
||||||
[submodule "external/slang"]
|
[submodule "external/slang"]
|
||||||
url = https://github.com/shader-slang/slang.git
|
url = git@github.com:Dynamitos/slang.git
|
||||||
|
|||||||
@@ -10,8 +10,7 @@ struct ViewParameter
|
|||||||
float4 cameraPos_WS;
|
float4 cameraPos_WS;
|
||||||
float2 screenDimensions;
|
float2 screenDimensions;
|
||||||
}
|
}
|
||||||
layout(set = 0)
|
uniform ParameterBlock<ViewParameter> pViewParams;
|
||||||
ParameterBlock<ViewParameter> pViewParams;
|
|
||||||
|
|
||||||
float4 clipToView(float4 clip)
|
float4 clipToView(float4 clip)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -42,5 +42,5 @@ struct Scene
|
|||||||
StructuredBuffer<uint32_t> primitiveIndices;
|
StructuredBuffer<uint32_t> primitiveIndices;
|
||||||
StructuredBuffer<uint32_t> vertexIndices;
|
StructuredBuffer<uint32_t> vertexIndices;
|
||||||
};
|
};
|
||||||
ParameterBlock<Scene> pScene;
|
uniform ParameterBlock<Scene> pScene;
|
||||||
|
|
||||||
|
|||||||
@@ -10,5 +10,5 @@ interface IVertexData
|
|||||||
{
|
{
|
||||||
VertexAttributes getAttributes(uint index);
|
VertexAttributes getAttributes(uint index);
|
||||||
};
|
};
|
||||||
layout(set = 1)
|
|
||||||
ParameterBlock<IVertexData> pVertexData;
|
uniform ParameterBlock<IVertexData> pVertexData;
|
||||||
@@ -17,6 +17,13 @@ Slang::ComPtr<slang::IBlob> Seele::generateShader(const ShaderCreateInfo& create
|
|||||||
}
|
}
|
||||||
slang::SessionDesc sessionDesc;
|
slang::SessionDesc sessionDesc;
|
||||||
sessionDesc.flags = 0;
|
sessionDesc.flags = 0;
|
||||||
|
slang::CompilerOptionEntry option;
|
||||||
|
option.name = slang::CompilerOptionName::IgnoreCapabilities;
|
||||||
|
option.value = slang::CompilerOptionValue();
|
||||||
|
option.value.kind = slang::CompilerOptionValueKind::Int;
|
||||||
|
option.value.intValue0 = 1;
|
||||||
|
sessionDesc.compilerOptionEntries = &option;
|
||||||
|
sessionDesc.compilerOptionEntryCount = 1;
|
||||||
sessionDesc.defaultMatrixLayoutMode = SLANG_MATRIX_LAYOUT_COLUMN_MAJOR;
|
sessionDesc.defaultMatrixLayoutMode = SLANG_MATRIX_LAYOUT_COLUMN_MAJOR;
|
||||||
Array<slang::PreprocessorMacroDesc> macros;
|
Array<slang::PreprocessorMacroDesc> macros;
|
||||||
for(const auto& [key, val] : createInfo.defines)
|
for(const auto& [key, val] : createInfo.defines)
|
||||||
@@ -28,14 +35,7 @@ Slang::ComPtr<slang::IBlob> Seele::generateShader(const ShaderCreateInfo& create
|
|||||||
}
|
}
|
||||||
sessionDesc.preprocessorMacroCount = macros.size();
|
sessionDesc.preprocessorMacroCount = macros.size();
|
||||||
sessionDesc.preprocessorMacros = macros.data();
|
sessionDesc.preprocessorMacros = macros.data();
|
||||||
slang::CompilerOptionEntry option;
|
|
||||||
option.name = slang::CompilerOptionName::IgnoreCapabilities;
|
|
||||||
option.value = slang::CompilerOptionValue();
|
|
||||||
option.value.kind = slang::CompilerOptionValueKind::Int;
|
|
||||||
option.value.intValue0 = 1;
|
|
||||||
slang::TargetDesc targetDesc;
|
slang::TargetDesc targetDesc;
|
||||||
targetDesc.compilerOptionEntries = &option;
|
|
||||||
targetDesc.compilerOptionEntryCount = 1;
|
|
||||||
targetDesc.profile = globalSession->findProfile("sm_6_6");
|
targetDesc.profile = globalSession->findProfile("sm_6_6");
|
||||||
targetDesc.format = target;
|
targetDesc.format = target;
|
||||||
targetDesc.compilerOptionEntryCount = 1;
|
targetDesc.compilerOptionEntryCount = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user