Skip to content

Error with GGXGlobalIllumination - uint/int #7

Description

@SirKnightTG

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions