| 740 | }; |
| 741 | |
| 742 | static 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 | |
| 759 | static dmGraphics::HTexture MakeDummyTexture(dmGraphics::HContext context, uint32_t depth = 1) |
| 760 | { |
nothing calls this directly
no test coverage detected