Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

1375222 Posts in 65096 Topics- by 57351 Members - Latest Member: SSoft_boi

April 07, 2020, 10:15:56 PM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)Diligent Engine v2.4.d: MSAA, Queries, Bindless Resources, new Tutorials
Pages: [1]
Print
Author Topic: Diligent Engine v2.4.d: MSAA, Queries, Bindless Resources, new Tutorials  (Read 536 times)
assiduous
Level 0
**


View Profile
« on: January 14, 2020, 12:32:53 PM »

This release of Diligent Engine implements a number of new features: MSAA, Queries, Bindless Resources. It also makes a major improvement to code quality assurance by enabling automated unit testing, format validation and static code analysis.
Check it out on GitHub: https://github.com/DiligentGraphics/DiligentEngine
Logged
assiduous
Level 0
**


View Profile
« Reply #1 on: February 04, 2020, 01:01:02 PM »

Diligent Engine is now also available in C!
Check out Tutorial 03 implemented using the new API: https://github.com/DiligentGraphics/DiligentSamples/tree/master/Tutorials/Tutorial03_Texturing-C.

This is what C API looks like:

Code:
// Bind vertex and index buffers
Uint32   offset = 0;
IBuffer* pBuffs[1];
pBuffs[0] = g_pCubeVertexBuffer;
IDeviceContext_SetVertexBuffers(pContext, 0, 1, pBuffs, &offset,
                                RESOURCE_STATE_TRANSITION_MODE_TRANSITION,
                                SET_VERTEX_BUFFERS_FLAG_RESET);
IDeviceContext_SetIndexBuffer(pContext, g_pCubeIndexBuffer, 0,
                              RESOURCE_STATE_TRANSITION_MODE_TRANSITION);

// Set the pipeline state
IDeviceContext_SetPipelineState(pContext, g_pPSO);
// Commit shader resources. RESOURCE_STATE_TRANSITION_MODE_TRANSITION mode
// makes sure that resources are transitioned to required states.
IDeviceContext_CommitShaderResources(pContext, g_pSRB,
                                     RESOURCE_STATE_TRANSITION_MODE_TRANSITION);

DrawIndexedAttribs DrawAttrs;
memset(&DrawAttrs, 0, sizeof(DrawAttrs));
DrawAttrs.IndexType    = VT_UINT32; // Index type
DrawAttrs.NumIndices   = 36;
DrawAttrs.NumInstances = 1;
// Verify the state of vertex and index buffers
DrawAttrs.Flags = DRAW_FLAG_VERIFY_ALL;
IDeviceContext_DrawIndexed(pContext, &DrawAttrs);
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic