fix: add missing glossary entry for surface-configuration
This commit is contained in:
@@ -110,6 +110,10 @@ Controls what happens to the [[framebuffer]](#framebuffer) at the end of a rende
|
||||
|
||||
wgpu's connection to a window's display buffer. Created via `instance.create_surface(window)`, the surface is like a bound socket — it is tied to a specific window and cannot be unlinked. The surface manages the [[swapchain]](#swapchain) and provides new framebuffers via `surface.get_current_texture()`. If the window is resized, the surface must be reconfigured with a new `SurfaceConfiguration`.
|
||||
|
||||
## Surface Configuration
|
||||
|
||||
The `SurfaceConfiguration` struct that allocates swapchain framebuffers: format, dimensions, present mode, and view formats. Reconfigured on window resize via `Surface::configure()`.
|
||||
|
||||
## Swapchain
|
||||
|
||||
A ring buffer of 2-3 [[framebuffer]](#framebuffer) textures managed by the GPU driver. The display hardware reads from the front buffer. The application renders to the back buffer. When the frame is complete, the buffers swap: the back buffer becomes the front (displayed), and the old front becomes the available back buffer for the next frame. This prevents screen tearing by ensuring the display never reads a frame mid-update.
|
||||
|
||||
Reference in New Issue
Block a user