Skip to content

spirv-val: Add SPV_KHR_ray_tracing_position_fetch#6539

Open
spencer-lunarg wants to merge 1 commit intoKhronosGroup:mainfrom
spencer-lunarg:spencer-lunarg-ray-fetch-position
Open

spirv-val: Add SPV_KHR_ray_tracing_position_fetch#6539
spencer-lunarg wants to merge 1 commit intoKhronosGroup:mainfrom
spencer-lunarg:spencer-lunarg-ray-fetch-position

Conversation

@spencer-lunarg
Copy link
Contributor

closes #5884

namespace spvtools {
namespace val {

spv_result_t RayTracingPass(ValidationState_t& _, const Instruction* inst) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ended up not adding anything to here, but had it "cleaned up" to matched the other pass files

!_.IsFloatVectorType(_.GetComponentType(result_type)) ||
_.GetDimension(_.GetComponentType(result_type)) != 3) {
return _.diag(SPV_ERROR_INVALID_DATA, inst)
<< "Expected 3 element array of 32-bit 3 component float point "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 32-bit aspect doesn't actually appear to be checked.

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.

Add validation for SPV_KHR_ray_tracing_position_fetch

2 participants