Diligent Engine v2.4.d: MSAA, Queries, Bindless Resources, Unit Tests, new Tutorials and more

Discussion in 'Game Development (Technical)' started by diligent, Jan 14, 2020.

  1. diligent

    diligent New Member

    Joined:
    Dec 12, 2018
    Messages:
    15
    Likes Received:
    0
    The latest 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

    Animation_Small.gif Animation_Small.gif
     
  2. diligent

    diligent New Member

    Joined:
    Dec 12, 2018
    Messages:
    15
    Likes Received:
    0
    Diligent Engine is now also available in C!
    Check out Tutorial 03 implemented using C API.

    This is an example of C API:

    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);
    
     
  3. JoyFreak

    JoyFreak New Member

    Joined:
    May 3, 2019
    Messages:
    143
    Likes Received:
    35
    That's awesome! Thanks for sharing, be exciting to see what's new!
     
    diligent likes this.

Share This Page

  • About Indie Gamer

    When the original Dexterity Forums closed in 2004, Indie Gamer was born and a diverse community has grown out of a passion for creating great games. Here you will find over 10 years of in-depth discussion on game design, the business of game development, and marketing/sales. Indie Gamer also provides a friendly place to meet up with other Developers, Artists, Composers and Writers.
  • Buy us a beer!

    Indie Gamer is delicately held together by a single poor bastard who thankfully gets help from various community volunteers. If you frequent this site or have found value in something you've learned here, help keep the site running by donating a few dollars (for beer of course)!

    Sure, I'll Buy You a Beer