Comments (3)
Related note: IFloat
is a builtin interface that both float
and vector<float, N>
implements. See https://github.com/shader-slang/slang/blob/master/tests/language-feature/generics/iarray.slang for an example.
from slang.
The problem with the code here is that:
- it is trying to instantiate
vector<vector<float,2>,3>
, which is not a valid type for SPIRV. - the value of
v
is uninitialized.
from slang.
it is trying to instantiate vector<vector<float,2>,3>, which is not a valid type for SPIRV.
My bad, thanks for pointing this out:
See https://github.com/shader-slang/slang/blob/master/tests/language-feature/generics/iarray.slang for an example.
the value of v is uninitialized.
This was on purpose to make the example simpler. I assume that with literals the compiler is able to optimize that out at compile time and even though the code uses types that can't be represented in SPIR-V, it would compile fine.
from slang.
Related Issues (20)
- Add alignment information to the ByteAddressBuffer Inst HOT 1
- Enabling debug symbol can cause compilation failure.
- VKCTS nightly runs start failing on run #38 HOT 9
- -emit-spirv-via-glsl is missing in slang API compilation HOT 2
- Fix autodiff test failures after enabling debug symbol.
- Fix `packSnorm2x16` and re-enable `tests/glsl-intrinsic/intrinsic-basic.slang` on direct spirv backend. HOT 1
- No debuginfo generated for buffer references HOT 14
- Warnings emitted during link time are not filtered by diagnostic settings HOT 3
- UserAttribute is missing in the reflection information for scalar variable declaration. HOT 1
- Prefer vector operations over unary operations for various GLSL/SPIRV/HLSL functions HOT 4
- Add unit testing to updated slang capabilities system
- `spReflection_getEntryPointCount` returns 0, am I using the api wrong? HOT 2
- Use SMin/UMin for SPIR-V target HOT 12
- Improve robustness of slang-test against random driver failures HOT 1
- Overload resolution prefers `int64->int` over `int64->uint64`.
- Incorrect WaveMatch result with SPIR/V
- Nested associated types with multiple possible implementations will crash the compiler. HOT 1
- Comparing unsigned and signed value yields an unexpected result
- `struct` construction using braces fails if differentiable member associations are missing.
- Crash when "uint(-1)" is used for "operator%()" or "operator/()" HOT 2
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.