KhronosGroup / KhronosGroup/glslang

HLSL: Error with scattered l-value read/modify/write with matrix accessor swizzles

Open
#844 1 comment 0 reactions 1 assignee Claimed by @johnkslang View on GitHub
bug HLSL
Dominant language
C++
Stars
3.6k
Forks
989
Avg merge
1d 2h
Merged PRs (30d)
31

Description

There are errors when trying to do some simple assignments like the following to a matrix:
```
float3x4 anchorTransform;
...
anchorTransform._m03_m13_m23 -= localSpaceOffset.xyz;
```

The error is:
```
error: 'assign' : only simple assignment to non-simple matrix swizzle is supported
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.