!FZyQrssSlHEZqrYcOb:matrix.org

In WebGPU we Rust

1216 Members
https://gfx-rs.github.io/2023/11/24/arcanization.html83 Servers

Load older messages


SenderMessageTime
29 Nov 2023
@bloomingconfusion:matrix.orgbloomingconfusion
            let mut pass = encoder.begin_render_pass(&wgpu::RenderPassDescriptor {
                label: None,
                color_attachments: &[Some(wgpu::RenderPassColorAttachment {
                    view: &view,
                    resolve_target: None,
                    ops: wgpu::Operations {
                        load: wgpu::LoadOp::Clear(wgpu::Color::TRANSPARENT),
                        store: wgpu::StoreOp::Store,
                    },
                })],
                depth_stencil_attachment: None,
                timestamp_writes: None,
                occlusion_query_set: None,
            });
01:00:43
@bloomingconfusion:matrix.orgbloomingconfusion *
            let mut pass = encoder.begin_render_pass(&wgpu::RenderPassDescriptor {
    label: None,
    color_attachments: &[Some(wgpu::RenderPassColorAttachment {
        view: &view,
        resolve_target: None,
        ops: wgpu::Operations {
            load: wgpu::LoadOp::Clear(wgpu::Color::TRANSPARENT),
            store: wgpu::StoreOp::Store,
        },
    })],
    depth_stencil_attachment: None,
    timestamp_writes: None,
    occlusion_query_set: None,
});
01:01:04
@bloomingconfusion:matrix.orgbloomingconfusion *
let mut pass = encoder.begin_render_pass(&wgpu::RenderPassDescriptor {
    label: None,
    color_attachments: &[Some(wgpu::RenderPassColorAttachment {
        view: &view,
        resolve_target: None,
        ops: wgpu::Operations {
            load: wgpu::LoadOp::Clear(wgpu::Color::TRANSPARENT),
            store: wgpu::StoreOp::Store,
        },
    })],
    depth_stencil_attachment: None,
    timestamp_writes: None,
    occlusion_query_set: None,
});
01:01:10
@exrook:chat.distanthills.orgexrook ⚡️ you want wgpu::LoadOp::Load instead of Clear 01:02:09
@bloomingconfusion:matrix.orgbloomingconfusion Yes, indeed :) I thought that Clear(wgpu::Color::TRANSPARENT) would not clear the canvas, but I guess the naming is pretty straightforward 01:44:38
@bloomingconfusion:matrix.orgbloomingconfusionThanks!01:44:44
@david34534:matrix.orgdavid34534 joined the room.17:55:31
@benjamin:computer.surgerybenjamin changed their display name from benjamin ⚡️ to test 🏳️‍⚧️.22:22:54
@benjamin:computer.surgerybenjamin changed their display name from test 🏳️‍⚧️ to benjamin.22:23:23
@benjamin:computer.surgerybenjamin changed their display name from benjamin to test 🏴‍☠️.22:24:31
@benjamin:computer.surgerybenjamin changed their display name from test 🏴‍☠️ to test 👩‍👦.22:27:55
@benjamin:computer.surgerybenjamin changed their display name from test 👩‍👦 to benjamin.22:28:27
30 Nov 2023
@prometheeuz:matrix.orgprometheeuz joined the room.13:48:43
@b0bh00d:mozilla.orgBob (:bhood) changed their profile picture.15:14:03
@radgerayden:matrix.orgradgeraydenwhat's the maximum number of adapters wgpuEnumerateAdapters can fill the argument buffer with?16:51:47
@cwfitzgerald:matrix.orgcwfitzgerald
In reply to @radgerayden:matrix.org
what's the maximum number of adapters wgpuEnumerateAdapters can fill the argument buffer with?
as many as your computer has
17:04:32
@radgerayden:matrix.orgradgeraydenwell I'm capping it at 32 then, but it's a bit unfortunate that I just have a buffer overflow waiting to happen in the inevitable future of computers with thousands of gpus17:05:24
@radgerayden:matrix.orgradgeraydenunless there's an adapter count function, I didn't check that17:05:41
@rajveermalviya:matrix.orgrajveermalviya for now it's a racy double call api, wgpuEnumerateAdapters(instance, NULL, NULL) will give you the count.
https://github.com/webgpu-native/webgpu-headers/issues/233 - considers to provide a standardised iterative api of some sort
17:10:13
@rajveermalviya:matrix.orgrajveermalviya * for now it's a double call api, wgpuEnumerateAdapters(instance, NULL, NULL) will give you the count.
https://github.com/webgpu-native/webgpu-headers/issues/233 - considers to provide a standardised iterative api of some sort
17:12:27
@rajveermalviya:matrix.orgrajveermalviyahere's the example - https://github.com/gfx-rs/wgpu-native/blob/fcc480b82be5f46b02a9f9eada89e7725b6bccef/examples/enumerate_adapters/main.c17:13:39
@radgerayden:matrix.orgradgeraydenI see, thank you17:30:08
@healthire:kyju.orgLilith changed their profile picture.17:59:37
@radgerayden:matrix.orgradgeraydenso enumerate adapters (currently) works more like if I requested every adapter and then pick them by my own criteria18:28:22
@rajveermalviya:matrix.orgrajveermalviya yes, you could filter them by backends using WGPUInstanceEnumerateAdapterOptions but for anything else you would need to query limits/properties and release the ones you don't need. 18:31:04
@radgerayden:matrix.orgradgeraydenI will probably do something like enumerate with primary first and then use my criteria, then only try secondary if absolutely necessary18:31:40
@raymarch:matrix.orgRayMarch joined the room.23:15:00
1 Dec 2023
@nical:mozilla.orgnical wumpf: I tried yout thing! 18:58:45
@nical:mozilla.orgnicalScreenshot from 2023-12-01 19-57-34.png
Download Screenshot from 2023-12-01 19-57-34.png
18:58:46
@nical:mozilla.orgnicalI think I'm using it very poorly but it helped me fix a bug so 👍️18:59:26

There are no newer messages yet.


Back to Room ListRoom Version: 5