| 311 | } |
| 312 | |
| 313 | static bgfx_shader_handle_t shaderLoad(const char* mat, const char* name, const char* type, void* ud) { |
| 314 | AssertIf(mat, "Effekseer shader loading with user defined material \"{}\" is unsupported", mat); |
| 315 | const char* shaderName = findShaderFile(name, type); |
| 316 | bgfx::RendererType::Enum rendererType = bgfx::getRendererType(); |
| 317 | bgfx::ShaderHandle handle = bgfx::createEmbeddedShader(DoraShaders, rendererType, shaderName); |
| 318 | bgfx::setName(handle, shaderName); |
| 319 | return bgfx_shader_handle_t{handle.idx}; |
| 320 | } |
| 321 | |
| 322 | static bgfx_texture_handle_t textureGet(int texture_type, void* parm, void* ud) { |
| 323 | if (auto renderTarget = RenderTarget::getCurrent()) { |
nothing calls this directly
no test coverage detected