Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

rendering geometry with command buffers

Discussion in 'General Graphics' started by uromastix87, Jul 16, 2018.

  1. uromastix87

    uromastix87

    Joined:
    Apr 9, 2013
    Posts:
    2
    I've been searching trying to simply render a triangle using command buffers. The Unity scripting docs are of no use. I'm missing some critical thing. When you tell a command buffer to draw a triangle where does it get the vertex data? Something with compute buffers? Sorry for my ignorance I have no experience with shaders.

    I found this forum post and copied the code in the second post but it does nothing. I don't see any geometry.
    https://forum.unity.com/threads/commandbuffer-drawprocedural-examples.417733/