Hai Nguyen
Hai Nguyen
Shader below is hitting this assert in `slang-ir-specialize-function-call.cpp::canSpecializeCall()`: ``` for( auto param : func->getParams() ) { UInt argIndex = argCounter++; SLANG_ASSERT(argIndex < call->getArgCount()); auto arg = call->getArg(argIndex); ``` I can't...
DXC allows for left side cast during assignment (copy), I'm getting this error when I compile the shader below: ``` shader.hlsl(36): error 30011: left of '=' is not an l-value....
The shader below triggers an assert in `slang-ir-glsl-legalize.cpp:createGLSLGlobalVaryingsImpl()` at 3 calls: ``` // We need to recurse down into the individual fields, // and generate a variable for each of...
The shader below is causing a NULL pointer access when retrieving the field layout at `slang-ir-insts.h::getFieldLayout()`, the element at `index` is null. This may be related to https://github.com/shader-slang/slang/issues/4451. CMD: ```...
I saw in the tests that Slang supports `typedef` for type aliasing. But I couldn't find anything about `using` in the docs or the tests. Curious if `using` will be...
Since Slang supports the `and` and `select` intrinsics, it only feels right to support the `or` intrinsic. Shader below currently results in the following error: ``` shader.hlsl(7): error 30015: undefined...
When compiling this shader: ``` StructuredBuffer g_mask; float4 main(uint4 input0 : ATTR0) : SV_Target { uint4 mask = g_mask[0]; uint4 res1 = WaveMultiPrefixProduct(input0, mask); uint4 res2 = WaveMultiPrefixSum(input0, mask); uint4...
The shader below is hitting an assert in `slang-emit-spirv::emitGlobalInst()` at due to `ConstantBuffer myCB2[2][2]`: ``` case kIROp_ConstantBufferType: SLANG_UNEXPECTED("Constant buffer type remaining in spirv emit"); ``` Multidimensional `Texture2D` and `SamplerState` work...
**Description** Not sure if this is intentional or not but it looks horrifically scary to my C/C++ eyes. The shader below contains variables that use their own components for initialization...
To make shader porting from HLSL to Slang easier, consider supporting the `#pragma pack_matrix()` directive. Currently slangc issues a warning and ignores the directive. Support this directive could save someone...