Vulkan - I heard it was verbose ...

Discussion in 'Beginners Zone' started by Scott_Arm, Jul 26, 2021.

  1. Scott_Arm

    Legend

    Joined:
    Jun 16, 2004
    Messages:
    14,864
    Likes Received:
    7,143
    I just looked at the source code for the examples included in the "ash" vulkan bindings for rust, and the example that draws a single triangle with vertex colours is 472 lines.
     
    digitalwanderer likes this.
  2. digitalwanderer

    digitalwanderer Dangerously Mirthful
    Legend

    Joined:
    Feb 19, 2002
    Messages:
    18,405
    Likes Received:
    2,985
    Location:
    Winfield, IN USA
    That seems pretty freaking verbose to me, and I believe I'm an expert on being overly verbose. :p
     
  3. Scott_Arm

    Legend

    Joined:
    Jun 16, 2004
    Messages:
    14,864
    Likes Received:
    7,143
    #3 Scott_Arm, Jul 26, 2021
    Last edited: Jul 26, 2021
    digitalwanderer likes this.
  4. Rodéric

    Rodéric a.k.a. Ingenu
    Moderator Veteran

    Joined:
    Feb 6, 2002
    Messages:
    4,071
    Likes Received:
    979
    Location:
    Planet Earth.
    It's not really that verbose, except the setup, apart from that, it's fine really.
    So since you have to write the setup code first it's intimidating, but after that things are rather easy and short.
     
    digitalwanderer, Scott_Arm and pharma like this.
  5. Scott_Arm

    Legend

    Joined:
    Jun 16, 2004
    Messages:
    14,864
    Likes Received:
    7,143
    Definitely an intimidating way to start, but I don't mind. I'm not in a huge rush to get anywhere with it. Just hobbying.
     
    digitalwanderer likes this.
  6. Rodéric

    Rodéric a.k.a. Ingenu
    Moderator Veteran

    Joined:
    Feb 6, 2002
    Messages:
    4,071
    Likes Received:
    979
    Location:
    Planet Earth.
    Don't forget to enable the debug layers, they will help you a lot.
    (Also note that despite them you'll manage to crash your app or get a black screen and be puzzled ^^ But that happens more and more rarely these days thanks to the debug layers being improved all the time.)
     
    Scott_Arm and digitalwanderer like this.
Loading...

Share This Page

  • About Us

    Beyond3D has been around for over a decade and prides itself on being the best place on the web for in-depth, technically-driven discussion and analysis of 3D graphics hardware. If you love pixels and transistors, you've come to the right place!

    Beyond3D is proudly published by GPU Tools Ltd.
Loading...