Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
matrixbot
@matrixbot

yanchith Hey there!

I am encountering some problems with RenderPass::set_viewport() and would like to know what values are allowed, at least for x, y, w and h. I've got 2 problems overall:

  • I can easily get the implementation to segfault if I input arbitrary numbers (but say within 10x of the target texture width/height).
  • Should providing negative w and h reverse the rendered result on the X and Y axes? It seems to do so with h, but not with w - for negative w I just get a black texture.

Is RenderPass::set_viewport() more or less an equivalent of glViewport(), or am I missing something?

matrixbot
@matrixbot
yanchith (If it matters, this was the vulkan backend)
Kangz It is the equivalent of glViewport yes. The upstream webgpu spec hasn't worked out the exact validation rules but I know Vulkan doesn't like when the viewport you set is outside of the 3x3 original viewport centered on the framebuffer. Also it requires Vulkan 1.1 or an extension to allow flipping Y
matrixbot
@matrixbot
yanchith I see! Thanks! Your explanation matches my discoveries, I think I'll add my own validations around this.
Dzmitry Malyshau
@kvark
Why are you guys in this room? :)
matrixbot
@matrixbot
yanchith lol, which one should we be in? here https://riot.im/app/#/room/#wgpu:matrix.org ?
Dzmitry Malyshau
@kvark
Yeah, or the gfx matrix one
Layl Bongers
@layl_gitlab
Thought someone may enjoy seeing this
It doesn't embed but oh well
I made a little brush engine on top of WGPU
matrixbot
@matrixbot
yanchith ❤️
matrixbot
@matrixbot
Kangz Nice !
Dzmitry Malyshau
@kvark
neat!
Lukas Wirth
@Veykril
This message was deleted
Layl Bongers
@layl_gitlab
I've been trying to debug an issue relating to WGPU slowing down concurrent rendering to the lowest update rate window. I've got both a 144hz and 60hz screen so that made this issue jump out at me. I think I've found the issue though.
Am I right in thinking that, in swap_chain_present, if queue.present_surface blocks, it still has the write locks acquired and those will have other threads wait?
I've been confused about how the Tokens work so I wanted to verify
Dzmitry Malyshau
@kvark
yes, indeed! That's an interesting discovery
@layl_gitlab how do you feel about continuing on Matrix instead of here? We are moving to the Matrix
Layl Bongers
@layl_gitlab
Oh! Sure, one moment
matrixbot
@matrixbot
lijinlei @kvark if need to update an existing buffer every frame, map_write or copy_buffer_to_buffer which is the best choice?
as gpuweb docs mentioned, user can reusing upload buffers to reduces overhead, is it possible or appropriate in wgpu-rs?
Dzmitry Malyshau
@kvark
lijinlei: we moved to the matrix, btw
look up gfx or wgpu rooms and let's continue there!
to answer your question, re-using upload buffers is pretty much blocked on #9, so creating a new upload buffer and copying from it is the way to go, for now
Dzmitry Malyshau
@kvark
m4b: but this is very interesting, thanks for the link!
just some 4.5K lines of code, wooh
matrixbot
@matrixbot
m4b I’m so confused. I thought I was on the webgpu matrix... when I click that link in riot iOS app nothing happens 🤨
Dzmitry Malyshau
@kvark
maybe my link is wrong?
matrixbot
@matrixbot
m4b on ios app it would like, go into infinite loop, and would have to close; was able to join on laptop, but it also said when i clicked the link above, "room cannot be previewed, join anyway?"
m4b 🤷‍♂️
Dzmitry Malyshau
@kvark
damn, strange
I'm using it on iOS Riot
Tonis Anton
@tonis2
Is it possible to use sampler arrayswith webgpu-rs ? I am looking for a way, to push multiple textures with different sizes to Gpu.
Dzmitry Malyshau
@kvark
There are no texture/sampler arrays in the spec yet. Also, this room moved to #wgpu:matrix.org
Roman Frołow
@rofrol
Hello all
Roman Frołow
@rofrol
I have updated deps to winit 0.20 and now I see black background on X11 but it works on Windows 10 cbrewster/brewcode#1
Dzmitry Malyshau
@kvark
Hi! We are on #wgpu in Matrix
Next step would be getting gfx-rs master and trying the examples
Roman Frołow
@rofrol
They works
I have already converted sotrh.github.io to winit 0.20 up to tutorial 6 and all work
Dzmitry Malyshau
@kvark
what about wgpu-rs examples?
matrixbot
@matrixbot
rofrol They all work.
Dzmitry Malyshau
@kvark
Please use the #wgpu MATRIX room, not gitter mirror
matrixbot
@matrixbot
rofrol I am using through riot.im
Fabio Krapohl
@porky11_gitlab
In case someone is interested, I just fixed wgpu for scopes for most recent versions of wgpu and scopes