Groups
Groups
Conversations
All groups and messages
Send feedback to Google
Help
Training
Sign in
Groups
Groups
skia-discuss
Conversations
About
window resizing error (graphite/dawn backend )
72 views
Skip to first unread message
刘晓伦
unread,
Jan 17, 2025, 9:01:53 AM
Jan 17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to skia-discuss
OS: Windows 10
Backend: graphite/dawn
Error:
Key Code:
```
case WM_SIZE: {
win->w = LOWORD(lParam);
win->h = HIWORD(lParam);
win->configSurface();
return 0;
}
```
```
void WindowMain::configSurface()
{
wgpu::SurfaceConfiguration config;
config.device = dawnDevice;
config.format = surfaceFormat;
config.usage = wgpu::TextureUsage::RenderAttachment | wgpu::TextureUsage::TextureBinding |
wgpu::TextureUsage::CopySrc | wgpu::TextureUsage::CopyDst;
config.width = w;
config.height = h;
config.presentMode = wgpu::PresentMode::Fifo;
dawnSurface.Configure(&config);
}
```
刘晓伦
unread,
Jan 27, 2025, 9:12:11 AM
Jan 27
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to skia-discuss
I think there might be a issue with the sample code when dealing with window size changes
tools\window\win\GraphiteDawnD3D12WindowContext_win.cpp
```
void GraphiteDawnD3D12WindowContext_win::resize(int w, int h) {
configureSurface();
}
```
Reply all
Reply to author
Forward
0 new messages