KhronosGroup / KhronosGroup/glslang

HLSL RWByteAddressBuffer templeted load/store is not supported

Open
#2,391 0 comments 0 reactions 0 assignees View on GitHub
HLSL Missing Functionality
Dominant language
C++
Stars
3.6k
Forks
989
Avg merge
1d 2h
Merged PRs (30d)
31

Description

Consider the HLSL shader:
```
struct s
{
uint a;
float b;
};

void main()
{
RWByteAddressBuffer buffer;
uint offset = 0;

buffer.Load(offset);
}
```
Glslang gives `ERROR: test.comp.hlsl:12: 'Load' : no such field in structure`.

Contributor guide

Open the contributing guide

Research direction

The issue provides a minimal HLSL example in test.comp.hlsl but names no repository source file or test. Start by reproducing the reported glslang error, then trace the HLSL front end's handling of RWByteAddressBuffer Load and Store templates. Done means the example is accepted and coverage verifies templated load/store behavior.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.