UgShader

SPIR-V shader module loading

destroy

Destroy a shader module

U0 destroy(UgContext.It& ctx, VkShaderModule shader);

Parameters

  • ctx — Vulkan context
  • shader — Shader module to destroy

create

Load a SPIR-V shader module from a file path

VkShaderModule create(UgContext.It& ctx, const I8* filePath);

Parameters

  • ctx — Vulkan context
  • filePath — Path to the compiled SPIR-V binary

Returns — Loaded shader module handle