MCPcopy Create free account
hub / github.com/defold/defold / TestEnableTextureByHashDispatch

Function TestEnableTextureByHashDispatch

engine/render/src/test/test_render.cpp:742–757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

740};
741
742static void TestEnableTextureByHashDispatch(dmRender::RenderListDispatchParams const & params)
743{
744 if (params.m_Operation == dmRender::RENDER_LIST_OPERATION_BATCH)
745 {
746 TestEnableTextureByHashDispatchCtx* user_ctx = (TestEnableTextureByHashDispatchCtx*) params.m_UserData;
747 dmRender::RenderObject* ro_0 = &user_ctx->m_RenderObject;
748
749 ro_0->m_Material = user_ctx->m_Material;
750 ro_0->m_VertexCount = 1;
751 ro_0->m_VertexDeclaration = user_ctx->m_VertexDeclaration;
752 ro_0->m_VertexBuffer = user_ctx->m_VertexBuffer;
753 memcpy(ro_0->m_Textures, user_ctx->m_Textures, sizeof(ro_0->m_Textures));
754
755 AddToRender(user_ctx->m_Context, ro_0);
756 }
757}
758
759static dmGraphics::HTexture MakeDummyTexture(dmGraphics::HContext context, uint32_t depth = 1)
760{

Callers

nothing calls this directly

Calls 1

AddToRenderFunction · 0.85

Tested by

no test coverage detected