KhronosGroup / KhronosGroup/Vulkan-ValidationLayers

Add runtime VK_KHR_fragment_shader_barycentric VUs

Open
#9,081 0 comments 0 reactions 0 assignees View on GitHub
GPU-AV Incomplete
Dominant language
C++
Stars
1k
Forks
504
Avg merge
11h 35m
Merged PRs (30d)
224

Description

The following require GPU-AV to validate

- [ ] VUID-RuntimeSpirv-Offset-06344
- [ ] VUID-RuntimeSpirv-Offset-06345
- [ ] VUID-RuntimeSpirv-Offset-06346
- [ ] VUID-RuntimeSpirv-Offset-06347

(note: Fragment width is 1 if `ShadingRateKHR` is not used)

will require GPU-AV to get the value of the offset

example shader

```glsl
#version 450
layout (location = 0) out vec4 out_color;

layout (location = 0) in vec2 value;
layout (location = 1) flat in vec2 offset;

void main() {
out_color.xy += interpolateAtOffset(value, offset);
}
```

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the four listed VUIDs and the example shader, with GPU-AV as the required mechanism for obtaining the runtime offset. Account for the note that fragment width is 1 when ShadingRateKHR is not used; done means adding runtime validation for VUID-RuntimeSpirv-Offset-06344 through 06347.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.