You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The C++ API wraps around the C structs with InitHelper. This has a constructor so doing this does not zero-initialize the object.
ffx::DispatchDescUpscale upscale_desc = {}; // Does not initialize the members!
This is quite unexpected to me. If a future update of the FFX SDK adds a member to any of the structs, it will be uninitialized unless explicitly set in the user code.
Doing a memset(0) on the object is also not an option because the constructor or InitHelper fills in the header.
Ideally the C++ wrapper should initialize all struct members.
The text was updated successfully, but these errors were encountered:
The C++ API wraps around the C structs with
InitHelper
. This has a constructor so doing this does not zero-initialize the object.ffx::DispatchDescUpscale upscale_desc = {}; // Does not initialize the members!
This is quite unexpected to me. If a future update of the FFX SDK adds a member to any of the structs, it will be uninitialized unless explicitly set in the user code.
Doing a memset(0) on the object is also not an option because the constructor or
InitHelper
fills in the header.Ideally the C++ wrapper should initialize all struct members.
The text was updated successfully, but these errors were encountered: