NVIDIAGameWorks / GettingStartedWithRTXRayTracing

Getting Started with RTX Ray Tracing
BSD 3-Clause "New" or "Revised" License
653 stars 98 forks source link

Error with GGXGlobalIllumination - uint/int #7

Open SirKnightTG opened 5 years ago

SirKnightTG commented 5 years ago

The GGX GI demo works, but every frame you get a popup saying: "Error when setting variable at offset 16. Type mismatch. Expecting Uint but the user provided a Int"

To fix this, I went into GGXGlobalIlluminationPass::execute() and added a cast to uint32_t for gMaxDepth like so: globalVars["GlobalCB"]["gMaxDepth"] = (uint32_t)mUserSpecifiedRayDepth;

No more error.

I tried changing mUserSpecifiedRayDepth to uint32_t in the class definition, but then Gui::addIntVar complained.

chnth commented 2 years ago

good! Thank you.

sjtuerx commented 2 years ago

it works ! Thanks.