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

Method Execute

engine/graphics/src/test/test_app_graphics.cpp:769–779  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

767 }
768
769 void Execute(EngineCtx* engine) override
770 {
771 dmGraphics::EnableProgram(engine->m_GraphicsContext, m_Program);
772 dmGraphics::EnableVertexBuffer(engine->m_GraphicsContext, m_VertexBuffer, 0);
773 dmGraphics::EnableVertexDeclaration(engine->m_GraphicsContext, m_VertexDeclaration, 0, 0, m_Program);
774
775 dmGraphics::HUniformLocation loc = GetUniformLocation(m_Program, "Test");
776 dmGraphics::VulkanSetStorageBuffer(engine->m_GraphicsContext, m_StorageBuffer, 0, 0, loc);
777
778 dmGraphics::Draw(engine->m_GraphicsContext, dmGraphics::PRIMITIVE_TRIANGLES, 0, 6, 1);
779 }
780};
781#endif
782

Callers

nothing calls this directly

Calls 5

EnableProgramFunction · 0.85
EnableVertexBufferFunction · 0.85
GetUniformLocationFunction · 0.85
EnableVertexDeclarationFunction · 0.50
DrawFunction · 0.50

Tested by

no test coverage detected