KhronosGroup / KhronosGroup/SPIRV-Cross

How do I query vertex attributes that are not used in shader?

Open
#2,280 4 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
GLSL
Stars
2.5k
Forks
713
Avg merge
2d 18h
Merged PRs (30d)
16

Description

Why spirv_cross::ShaderResources::stage_inputs does not contain inputs that do not used by shader(vertex stage)? I think it is important information to calculate offsets of each attribute and stride for whole vertex. Is there a way to get this information?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by examining ShaderResources::stage_inputs and the vertex-stage reflection behavior described in the issue. Determine whether and how unused vertex attributes should be exposed so their offsets and whole-vertex stride can be calculated; the issue is complete when the expected reflection information and its representation are clearly established.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.