static
| 573 | |
| 574 | // static |
| 575 | VkShaderObj 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 |
| 586 | VkShaderObj VkShaderObj::CreateFromASM(VkRenderFramework* framework, const char* source, VkShaderStageFlagBits stage, |
nothing calls this directly
no test coverage detected