Comments (3)
Looks like it doesn't like that the constant patch function is declared after the main function. For whatever reason fxc is cool with this. I can probably update the shader to reverse the order so this isn't high priority. However, a good diagnostic describing the problem would be preferable over an assert :).
FWIW, the assert could be avoided by adding an early out return
in DxilGenerationPass::CreateDxilSignatures
after the line:
EntryFunc->getContext().emitError("Patch constant function is not specified.");
However, that error message is still a bit confusing.
Edit: scratch that last bit; adding an early out just causes it to crash later on.
from directxshadercompiler.
Thanks for the report - this is something we should fix to work the way fxc does.
from directxshadercompiler.
I think this is fixed by #748.
from directxshadercompiler.
Related Issues (20)
- [Feature Request] Bring Expanded Comparison Sampling up to date with the specification HOT 1
- Enable WaveMatrix intrinsics in node shaders HOT 1
- DXIL.dll crashes on intrinsics that are not defined for a known shader model
- [SPIR-V] using vk::offset on struct causes invalid spir-v HOT 6
- [SPIR-V] Invalid SPIR-V when using ByteAddressBuffer as separate variable in mesh shader HOT 6
- [SPIR-V] Uniform buffer block names are not preserved HOT 3
- Replace latest build binary artifact links HOT 5
- ExecutionTest::UnaryHalfOpTest#AcosHalf is failing on recent Windows builds HOT 3
- ExecutionTest::DerivativesTest is failing on recent Windows builds HOT 3
- ExecutionTest::ComputeSampleTest is failing on latest Microsoft Basic Render Driver HOT 2
- ExecutionTest::ATOProgOffset is crashes on ARM64 HOT 1
- `break` in shader causes ICE when compiled with -Od HOT 1
- Clang::CodeGenSPIRV test for attribute.domain.isoline.hlsl is failing on ARM64 Release on Windows HOT 1
- [SPIR-V] Does not handle flat conversion from large literal
- [SPIR-V] Can't select SPV_NV_mesh_shader when SPIR-V 1.4 or above is supported
- [Feature Request] Add AST testing for [Empty]NodeOutputArray types
- DXC clang tests fail on Linux Mariner HOT 3
- DXC 1.8.2403 Release HOT 1
- Truncation warning message incorrectly references an invalid hlsl type HOT 1
- No truncation warning issued for 32-bit output of 64-bit atomics HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from directxshadercompiler.