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
inCPUImageParams.flags = asset::IImage::ECF_NONE; // Because we may want to write to first few layers of CUBEMAP (<6) but it's not valid to create an Cube ICPUImage with less that 6 layers.
69
69
inCPUImageParams.format = srcImageFormat;
70
-
inCPUImageParams.viewFormats.reset();
70
+
inCPUImageParams.viewFormats.reset();// Resetting viewFormats to 0 since all flags were reset earlier, setting flags to ECF_NONE and not resetting viewFormats may cause validation errors during ICPUImage creation
inCPUImageParams.mipLevels = 1u; // since we copy one mip at a time to our dst image, it doesn't matter at the stage when we copy from cpu memory to staging memory
outCPUImageParams.flags = asset::IImage::ECF_NONE; // Because we may want to write to first few layers of CUBEMAP (<6) but it's not valid to create an Cube ICPUImage with less that 6 layers.
108
-
outCPUImageParams.viewFormats.reset();
108
+
outCPUImageParams.viewFormats.reset();// Resetting viewFormats to 0 since all flags were reset earlier, setting flags to ECF_NONE and not resetting viewFormats may cause validation errors during ICPUImage creation
0 commit comments