载入中...
搜索中...
未找到
Capabilities.cpp
浏览该文件的文档.
void capture(wgpu::Adapter &adapter, wgpu::Device &device)
Populate the snapshot from an adapter and device. Call once, right after device creation; keep the re...
Definition Capabilities.cpp:26
bool supportsSampleCount(uint32_t count) const
True when the device supports the given render-target sample count.
Definition Capabilities.cpp:55
static WGPUTextureFormat querySurfaceFormat(wgpu::Adapter &adapter, wgpu::Surface &surface, WGPUTextureFormat defaultFormat)
Query the surface's preferred format from the adapter. Falls back to defaultFormat when the surface r...
Definition Capabilities.cpp:11
bool supportsFormat(WGPUTextureFormat format) const
True when the device advertises the given texture format.
Definition Capabilities.cpp:61