mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 15:46:28 +00:00
Update SPRIV-Cross for HLSL SM5.1 register name support
This commit is contained in:
@@ -59,18 +59,6 @@ namespace d3d12 {
|
|||||||
RenumberBindings(resources.separate_samplers); // s
|
RenumberBindings(resources.separate_samplers); // s
|
||||||
|
|
||||||
hlslSource = compiler.compile();
|
hlslSource = compiler.compile();
|
||||||
|
|
||||||
{
|
|
||||||
// pending https://github.com/KhronosGroup/SPIRV-Cross/issues/216
|
|
||||||
// rename ": register(cN)" to ": register(bN)"
|
|
||||||
std::string::size_type pos = 0;
|
|
||||||
const std::string search = ": register(c";
|
|
||||||
const std::string replace = ": register(b";
|
|
||||||
while ((pos = hlslSource.find(search, pos)) != std::string::npos) {
|
|
||||||
hlslSource.replace(pos, search.length(), replace);
|
|
||||||
pos += replace.length();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string& ShaderModule::GetHLSLSource() const {
|
const std::string& ShaderModule::GetHLSLSource() const {
|
||||||
|
|||||||
2
third_party/spirv-cross
vendored
2
third_party/spirv-cross
vendored
Submodule third_party/spirv-cross updated: a2f6679d13...2cbeaac76f
Reference in New Issue
Block a user