You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tracking ticket for a public API change proposal. The idea was introduced in #185 (comment)
wgpu::SurfaceConfiguration contains the same basic information that we need for surface management (mainly the size). We can replace our pixels::SurfaceTexture type with a wgpu::SurfaceConfiguration. It would change the old way of creating a builder:
let surface_texture = SurfaceTexture::new(window_size.width, window_size.height,&window);let builder = PixelsBuilder::new(width, height, surface_texture);
To the new way:
let surface_config = pixels::surface_config(window_size.width, window_size.height,None);let builder = PixelsBuilder::new(width, height,&window, surface_config);
Where pixels::surface_config has this function signature:
The only reason to do this would be to have Pixels own a SurfaceConfiguration instead of creating a new one every time the surface needs to be reconfigured. And of course, exposing the configuration publicly. The pixels::surface_config() helper is optional, and a surface configuration can be created in any way.
The text was updated successfully, but these errors were encountered:
Tracking ticket for a public API change proposal. The idea was introduced in #185 (comment)
wgpu::SurfaceConfiguration
contains the same basic information that we need for surface management (mainly the size). We can replace ourpixels::SurfaceTexture
type with awgpu::SurfaceConfiguration
. It would change the old way of creating a builder:To the new way:
Where
pixels::surface_config
has this function signature:The only reason to do this would be to have
Pixels
own aSurfaceConfiguration
instead of creating a new one every time the surface needs to be reconfigured. And of course, exposing the configuration publicly. Thepixels::surface_config()
helper is optional, and a surface configuration can be created in any way.The text was updated successfully, but these errors were encountered: