KhronosGroup / KhronosGroup/SPIRV-Cross

C api for setting spec constants

Open
#1,864 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
GLSL
Stars
2.5k
Forks
713
Avg merge
2d 18h
Merged PRs (30d)
16

Description

There are functions that depend on the values of specialization constants (for example, get_declared_struct_member_size). There is no way to get the correct result in the C API because there is no API for setting specialization constants.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the C API entry point for get_declared_struct_member_size and trace how specialization-constant values reach reflection functions. Determine the setter's expected scope and behavior, then verify that dependent results use the supplied constants; done means the C API can set them and return correct values.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.