GettingStartedWithRTXRayTracing icon indicating copy to clipboard operation
GettingStartedWithRTXRayTracing copied to clipboard

Error with GGXGlobalIllumination - uint/int

Open SirKnightTG opened this issue 6 years ago • 2 comments

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.

SirKnightTG avatar Jun 01 '19 06:06 SirKnightTG

good! Thank you.

chnth avatar Nov 06 '21 08:11 chnth

it works ! Thanks.

sjtuerx avatar Nov 13 '21 05:11 sjtuerx