!wAvQtPZgqUpkbHgXaM:matrix.org

Vulkano

52 Members
https://github.com/vulkano-rs/1 Servers

Load older messages


SenderMessageTime
28 Aug 2020
@gitter_athemathmo:matrix.orgJames Lucas (Gitter)

I'm trying to complete the guide on the vulkano website --- the windowed part that's incomplete.

I managed to figure out how to get vulkan to render to a winit window, but the performance is pretty poor on resizing. Is someone willing to take a look at my code and tell me what I'm doing wrong? :D

https://gist.github.com/AtheMathmo/3fed0665400fd6850cf0d144bb9b9070

17:13:41
@gitter_athemathmo:matrix.orgJames Lucas (Gitter) Just found this example: https://github.com/vulkano-rs/vulkano/blob/master/examples/src/bin/triangle.rs . I should be able to figure it out from here! 17:32:50
@gitter_etrombly:matrix.orgEric Trombly (Gitter) this issue fixed my alignment problem vulkano-rs/vulkano#1111 . setting PointVk to#[repr(C, align(16))] 17:46:43
30 Aug 2020
@gitter_leftadjoint:matrix.orgleft_adjoint (Gitter) @etrombly there's an vulkano example for loading shaders at runtime here 13:59:44
@gitter_leftadjoint:matrix.orgleft_adjoint (Gitter) If you want to compile to spirv at runtime, check out shaderc-rs 14:01:19
@gitter_athemathmo:matrix.orgJames Lucas (Gitter)

I'm trying to put together as basic render pipeline but there's one thing (at least) that is still really tripping me up. I can't figure out how to handle my graphics pipelines. Sorry for message length.

I've looked through all the examples now and took a lot of inspiration from them (especially the deferred rendering one). But I want to be able to draw multiple meshes and I can't figure out how to organize the pipelines.

If I understand correctly, generally, each mesh needs its own graphics pipeline as they may use different shaders. The pipeline may also need to be recreated if the window size changes. The teapot example says as much, but then uses .viewports_dynamic_scissors_irrelevant(1) which I think implies a dynamic viewport?

20:07:51
@gitter_athemathmo:matrix.orgJames Lucas (Gitter) (edited) ... together as basic ... => ... together a basic ... 20:07:57
@gitter_athemathmo:matrix.orgJames Lucas (Gitter) (edited) ... each mesh ... => ... each rendered mesh ... 20:08:06
@gitter_etrombly:matrix.orgEric Trombly (Gitter)Thank you, I ended up not needing the extension, but that should help in the future21:04:32
31 Aug 2020
@gitter_leftadjoint:matrix.orgleft_adjoint (Gitter) @AtheMathmo I think what you're looking for is a "material system". If you want different materials, you can paramaterize your shaders by providing push constants and uniform buffers, for example. 00:16:21
@gitter_leftadjoint:matrix.orgleft_adjoint (Gitter) (edited) ... for example. => ... for example. 00:17:22
@gitter_leftadjoint:matrix.orgleft_adjoint (Gitter) You might find this helpful 00:17:23
@gitter_leftadjoint:matrix.orgleft_adjoint (Gitter) (edited) You might find [this](http://kylehalladay.com/blog/tutorial/2017/11/27/Vulkan-Material-System.html) helpful => @AtheMathmo I think what you're looking for is a "material system". If you want different materials, you can paramaterize your shaders by providing push constants and uniform buffers, for example. 00:23:02
@gitter_athemathmo:matrix.orgJames Lucas (Gitter)looks like exactly what I need. Thanks!00:23:02
@gitter_leftadjoint:matrix.orgleft_adjoint (Gitter) (edited) ... for example. => ... for example. 00:38:57
@gitter_leftadjoint:matrix.orgleft_adjoint (Gitter) You're welcome! 00:38:57
2 Sep 2020
@gitter_pac85_gitlab:matrix.organtonino (Gitter) I'm trying to load mip maps into an unitialized image, the ImmutableImageInitialization object can only be used once and copy_image_to_buffer only copies one mip_map level. How am I supposed to load all of them? 00:15:26
3 Sep 2020
@gitter_eliah_lakhin_twitter:matrix.orgEliah Lakhin (Gitter) @pac85_gitlab I think this function might be helpful: https://docs.rs/vulkano/0.19.0/vulkano/command_buffer/struct.AutoCommandBufferBuilder.html#method.copy_image_to_buffer_dimensions 15:13:42
@gitter_pac85_gitlab:matrix.organtonino (Gitter)

@pac85_gitlab I think this function might be helpful: https://docs.rs/vulkano/0.19.0/vulkano/command_buffer/struct.AutoCommandBufferBuilder.html#method.copy_image_to_buffer_dimensions

that only allows me to copy one mip level as I said, that won't do beacuse after that I can't write to the image any more

23:53:33
4 Sep 2020
@gitter_pac85_gitlab:matrix.organtonino (Gitter) I've noticed that commits suddently stoppeted on the 12th of June, is everything alright with the project? 00:16:57
@gitter_alexandrekawan:matrix.orgAlexandre Kawan (Gitter) joined the room.00:44:48
@gitter_alexandrekawan:matrix.orgAlexandre Kawan (Gitter)I am a complete beginner in graphics programming, I want to learn vulkan and vulkano, do you have any suggestion of how to learn it in an efficient way, guys?00:44:49
@gitter_pac85_gitlab:matrix.organtonino (Gitter) just found this https://docs.rs/vulkano/0.19.0/src/vulkano/image/immutable.rs.html#521 14:46:46
9 Sep 2020
@gitter_eliah_lakhin_twitter:matrix.orgEliah Lakhin (Gitter)

I've noticed that commits suddently stoppeted on the 12th of June, is everything alright with the project?

@pac85_gitlab Well, I'm not a maintainer of the project, just an active user and a minor contributor. @AustinJ235 has disappeared, unfortunately. I didn't see any activity in his own projects too for the past time. Hopefully, he will get back, but in worst case I think we can ask Tomaka to assign another one maintainer, or maybe even do our own fork. But in this moment there are no urgent PR pendings or bugs to be fixed urgently. The codebase is quite stable.

16:26:17
@gitter_eliah_lakhin_twitter:matrix.orgEliah Lakhin (Gitter) @AlexandreKawan It depends on the tasks that you want to work. I would suggest to start from the practical things, something you want to implement. The repo examples and the Guide were very helpful for me when I start learning this stuff. 16:29:11
@gitter_zacxalot:matrix.orgZacxalot (Gitter) joined the room.20:12:34
@gitter_zacxalot:matrix.orgZacxalot (Gitter) Hey @AlexandreKawan I've just started learning too, I've been going through the guide for the last few days and it's been really good so far! 20:12:37
12 Sep 2020
@gitter_zacxalot:matrix.orgZacxalot (Gitter) @eliah_lakhin_twitter @eliah_lakhin_twitter 19:23:23
17 Sep 2020
@gitter_aimainahito:matrix.orgAimaina Hito (Gitter) Is there a way to store a GraphicsPipeline in a struct? I can't figure out how to get the correct type since single_pass_renderpass! creates a local type which can't be accessed from the outside which currently makes what I'm planning to do impossible - any advice would be appreciated 14:48:42
18 Sep 2020
@psydroid:matrix.orgpsydroid joined the room.12:42:01

There are no newer messages yet.


Back to Room List