Skip to content

Conversation

@s-perron
Copy link
Contributor

@s-perron s-perron commented Nov 7, 2025

This commit introduces support for specialization constants in the Vulkan backend.

Key changes:

  • Added struct to to represent a specialization constant with its ID, type, and value.
  • Updated YAML mapping in to parse specialization constants from the test configuration.
  • Modified to create and use when creating the compute pipeline, allowing specialization constants to be passed to the shader.
  • Added a new test case in to verify the functionality of specialization constants with various data types (bool, int, uint, float).

Fixes llvm/llvm-project#142992

This commit introduces support for specialization constants in the Vulkan backend.

Key changes:
- Added  struct to  to represent a specialization constant with its ID, type, and value.
- Updated YAML mapping in  to parse specialization constants from the test configuration.
- Modified  to create and use  when creating the compute pipeline, allowing specialization constants to be passed to the shader.
- Added a new test case in  to verify the functionality of specialization constants with various data types (bool, int, uint, float).

Fixes llvm/llvm-project#142992
@s-perron s-perron requested a review from Keenuts November 7, 2025 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[HLSL] Add vk::constant_id tests to the offload test suite

1 participant