MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / CreateFromGLSL

Method CreateFromGLSL

tests/framework/shader_helper.cpp:575–583  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

573
574// static
575VkShaderObj VkShaderObj::CreateFromGLSL(VkRenderFramework* framework, const char* source, VkShaderStageFlagBits stage,
576 const spv_target_env spv_env, const VkSpecializationInfo* spec_info,
577 const char* entry_point) {
578 auto shader = VkShaderObj(*framework->DeviceObj(), source, stage, spv_env, SPV_SOURCE_GLSL_TRY, spec_info, entry_point);
579 if (VK_SUCCESS == shader.InitFromGLSLTry()) {
580 return shader;
581 }
582 return {};
583}
584
585// static
586VkShaderObj VkShaderObj::CreateFromASM(VkRenderFramework* framework, const char* source, VkShaderStageFlagBits stage,

Callers

nothing calls this directly

Calls 3

VkShaderObjClass · 0.85
DeviceObjMethod · 0.80
InitFromGLSLTryMethod · 0.80

Tested by

no test coverage detected