Data Fields | |
| WGPUChainedStruct * | nextInChain |
| WGPUTexture | texture |
| WGPUSurfaceGetCurrentTextureStatus | status |
Queried each frame from a WGPUSurface to get a WGPUTexture to render to along with some metadata. See Presenting to Surface for more details.
Default values can be set using WGPU_SURFACE_TEXTURE_INIT as initializer.
| WGPUChainedStruct* WGPUSurfaceTexture::nextInChain |
| WGPUTexture WGPUSurfaceTexture::texture |
The WGPUTexture representing the frame that will be shown on the surface. It is Returned with Ownership from wgpuSurfaceGetCurrentTexture.
The INIT macro sets this to NULL.
| WGPUSurfaceGetCurrentTextureStatus WGPUSurfaceTexture::status |
Whether the call to wgpuSurfaceGetCurrentTexture succeeded and a hint as to why it might not have.
The INIT macro sets this to (WGPUSurfaceGetCurrentTextureStatus)0.