gpu: implement NativeInstance.createSurface
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
89b1f31de8
commit
368f53ece1
3 changed files with 105 additions and 68 deletions
|
|
@ -26,7 +26,6 @@ typedef struct WGPURenderPassEncoderImpl* WGPURenderPassEncoder;
|
|||
typedef struct WGPURenderPipelineImpl* WGPURenderPipeline;
|
||||
typedef struct WGPUSamplerImpl* WGPUSampler;
|
||||
typedef struct WGPUShaderModuleImpl* WGPUShaderModule;
|
||||
typedef struct WGPUSurfaceImpl* WGPUSurface;
|
||||
typedef struct WGPUSwapChainImpl* WGPUSwapChain;
|
||||
typedef struct WGPUTextureImpl* WGPUTexture;
|
||||
typedef struct WGPUTextureViewImpl* WGPUTextureView;
|
||||
|
|
@ -1275,10 +1274,6 @@ WGPU_EXPORT void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, char co
|
|||
WGPU_EXPORT void wgpuShaderModuleReference(WGPUShaderModule shaderModule);
|
||||
WGPU_EXPORT void wgpuShaderModuleRelease(WGPUShaderModule shaderModule);
|
||||
|
||||
// Methods of Surface
|
||||
WGPU_EXPORT void wgpuSurfaceReference(WGPUSurface surface);
|
||||
WGPU_EXPORT void wgpuSurfaceRelease(WGPUSurface surface);
|
||||
|
||||
// Methods of SwapChain
|
||||
WGPU_EXPORT void wgpuSwapChainConfigure(WGPUSwapChain swapChain, WGPUTextureFormat format, WGPUTextureUsageFlags allowedUsage, uint32_t width, uint32_t height);
|
||||
WGPU_EXPORT WGPUTextureView wgpuSwapChainGetCurrentTextureView(WGPUSwapChain swapChain);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue