MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / textureGet

Function textureGet

Source/Node/EffekNode.cpp:322–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320}
321
322static bgfx_texture_handle_t textureGet(int texture_type, void* parm, void* ud) {
323 if (auto renderTarget = RenderTarget::getCurrent()) {
324 if (texture_type == TEXTURE_BACKGROUND) {
325 return {renderTarget->getTexture()->getHandle().idx};
326 }
327 if (texture_type == TEXTURE_DEPTH) {
328 return {renderTarget->getDepthTexture()->getHandle().idx};
329 }
330 }
331 return BGFX_INVALID_HANDLE;
332}
333
334static int textureLoad(const char* name, int srgb, void* ud) {
335 DORA_UNUSED_PARAM(srgb);

Callers

nothing calls this directly

Calls 3

getDepthTextureMethod · 0.80
getHandleMethod · 0.45
getTextureMethod · 0.45

Tested by

no test coverage detected