UgUtils
Miscellaneous Vulkan rendering utilities
setClearColor
Set the global clear color used at the start of each render pass
U0 setClearColor(F32 r, F32 g, F32 b, F32 a);Parameters
r— Red component (0.0–1.0)g— Green component (0.0–1.0)b— Blue component (0.0–1.0)a— Alpha component (0.0–1.0)
getClearColor
Get the currently set global clear color
VkClearColorValue getClearColor();Returns — VkClearColorValue with the stored RGBA values
findMemoryType
Find a device memory type index satisfying the given requirements
U32 findMemoryType(UgContext.It& ctx, U32 typeFilter, VkMemoryPropertyFlags properties);Parameters
ctx— Vulkan contexttypeFilter— Bitmask of acceptable memory type indicesproperties— Required memory property flags
Returns — Index of a suitable memory type