Comments (8)
from slang.
Reading matrices from an input stream is very rare. Do you intend this, or do you mean uniform float4x4 mvp
?
from slang.
GLSL does not allow matrices as vertex stream elements IIRC.
from slang.
The fix here is to issue an error message that forbids defining a non-uniform matrix typed parameter.
from slang.
The issue here is that the code is being compiled with "column-major" layout, which maps to glsl's "row-major". Can you share you compilation options? Compiling with default row-major layout should get rid of the decoration.
You can also try -emit-spirv-directly and see if it fixes the problem.
from slang.
My args are -I src/shaders -g3 -line-directive-mode none -entry main -target glsl -force-glsl-scalar-layout -o out.glsl -- shader.slang
I'm not passing the -matrix-layout-row-major
option. Are you saying that if I did pass it, there would be no layout(row_major)
or layout(column_major)
annotations on these GLSL attributes? I may be approaching it incorrectly in that case, since I translated my GLSL's matrix * vector
snippets into mul(matrix, vector)
in Slang.
from slang.
You need to either pass -matrix-layout-row-major or specify row_major modifier on the parameter.
from slang.
Closing since the matrix layout qualifier should work here. If not, please reopen.
from slang.
Related Issues (20)
- Capabilities System: Inclusive join logic bug
- Trailing OpTypeRuntimeArray in Uniform Struct
- Add compile flag to allow for relaxed enum rules HOT 2
- GLSLForceScalarLayout doesn't seem to work as CompileOptionEntry HOT 4
- Metal: support for structures in compute kernel arguments HOT 2
- Reinvestigate support for OpDebugTypePointer
- "DerivativeGroupLinear" not working when compiled with glslang HOT 1
- Preprocessor macro for targets HOT 9
- error 49999: unknown system-value semantic 'SV_InsideTessFactor' HOT 5
- Running examples like "triangle" fails to find corresponding "shader.slang" HOT 3
- SPIR-V Validation error - Fragment stage integer Input decorated Flat multiple times HOT 1
- [SPIRV] Resulting matrix vector product code looks unoptimized HOT 2
- Vertex entrypoints missing from capability system? HOT 3
- `GetAttributeAtVertex` is not correctly implemented for SPIRV. HOT 1
- Add compile flag to allow register() for Vulkan HOT 2
- slang-test failures with the latest Vulkan SDK 1.3.283.0
- Sanity check for compiling multiple shaders in a single file to SPIR-V library with Slang API HOT 1
- Disable all failing metal tests and enable full testing on CI.
- Passthrough linking of shader-modules with embedded DXIL
- Implement `InputPatch` and `OutputPatch` for spirv.
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 slang.