fixes #166206 - Add swizzle support if row index is constant - Add test cases - Add new AST type - Add new LValue for Matrix Row Type - TODO: Make the new LValue a dynamic index version of ExtVectorElt
12 lines
359 B
HLSL
12 lines
359 B
HLSL
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.7-library -disable-llvm-passes -emit-llvm -finclude-default-header -o - %s | FileCheck %s
|
|
// BUG: https://github.com/llvm/llvm-project/issues/170777
|
|
// XFAIL: *
|
|
|
|
void setMatrix(out float4x4 M, int index, float4 V) {
|
|
M[index].abgr = V;
|
|
}
|
|
|
|
float3 getMatrix(float4x4 M, int index) {
|
|
return M[index].rgb;
|
|
}
|