NVIDIA / NVIDIA/nvapi

NvHitObjectMacroDummyPayloadType missing PAQ

Open
#22 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
239
Forks
39
PR merge metrics
No merged PRs in 30d

Description

HitObject.MakeHit fails to compile when the target is set to sm_6_8. It's likely because of an issue in the NVAPI headers. It looks like the struct here needs the [raypayload] attribute.

Refer - https://microsoft.github.io/DirectX-Specs/d3d/Raytracing.html#hitobject-interaction-with-payload-access-qualifiers

The solution looks like -
struct [raypayload] NvHitObjectMacroDummyPayloadType { int a : read(caller) : write(caller); };

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect nvHLSLExtns.h around line 2448 and compare NvHitObjectMacroDummyPayloadType with the DirectX raytracing payload access qualifier specification. Reproduce the HitObject.MakeHit compilation failure with the target set to sm_6_8, then verify that the header change allows it to compile.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
computer-graphics
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.