gpu: begin implementing Surface
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
64e023c992
commit
89b1f31de8
4 changed files with 96 additions and 86 deletions
43
gpu/src/TODO
43
gpu/src/TODO
|
|
@ -299,16 +299,10 @@ typedef enum WGPURequestDeviceStatus {
|
|||
|
||||
typedef enum WGPUSType {
|
||||
WGPUSType_Invalid = 0x00000000,
|
||||
WGPUSType_SurfaceDescriptorFromMetalLayer = 0x00000001,
|
||||
WGPUSType_SurfaceDescriptorFromWindowsHWND = 0x00000002,
|
||||
WGPUSType_SurfaceDescriptorFromXlibWindow = 0x00000003,
|
||||
WGPUSType_SurfaceDescriptorFromCanvasHTMLSelector = 0x00000004,
|
||||
WGPUSType_ShaderModuleSPIRVDescriptor = 0x00000005,
|
||||
WGPUSType_ShaderModuleWGSLDescriptor = 0x00000006,
|
||||
WGPUSType_SurfaceDescriptorFromWindowsCoreWindow = 0x00000008,
|
||||
WGPUSType_ExternalTextureBindingEntry = 0x00000009,
|
||||
WGPUSType_ExternalTextureBindingLayout = 0x0000000A,
|
||||
WGPUSType_SurfaceDescriptorFromWindowsSwapChainPanel = 0x0000000B,
|
||||
WGPUSType_DawnTextureInternalUsageDescriptor = 0x000003E8,
|
||||
WGPUSType_PrimitiveDepthClampingState = 0x000003E9,
|
||||
WGPUSType_DawnTogglesDeviceDescriptor = 0x000003EA,
|
||||
|
|
@ -872,43 +866,6 @@ typedef struct WGPUStorageTextureBindingLayout {
|
|||
WGPUTextureViewDimension viewDimension;
|
||||
} WGPUStorageTextureBindingLayout;
|
||||
|
||||
typedef struct WGPUSurfaceDescriptor {
|
||||
WGPUChainedStruct const * nextInChain;
|
||||
char const * label;
|
||||
} WGPUSurfaceDescriptor;
|
||||
|
||||
typedef struct WGPUSurfaceDescriptorFromCanvasHTMLSelector {
|
||||
WGPUChainedStruct chain;
|
||||
char const * selector;
|
||||
} WGPUSurfaceDescriptorFromCanvasHTMLSelector;
|
||||
|
||||
typedef struct WGPUSurfaceDescriptorFromMetalLayer {
|
||||
WGPUChainedStruct chain;
|
||||
void * layer;
|
||||
} WGPUSurfaceDescriptorFromMetalLayer;
|
||||
|
||||
typedef struct WGPUSurfaceDescriptorFromWindowsCoreWindow {
|
||||
WGPUChainedStruct chain;
|
||||
void * coreWindow;
|
||||
} WGPUSurfaceDescriptorFromWindowsCoreWindow;
|
||||
|
||||
typedef struct WGPUSurfaceDescriptorFromWindowsHWND {
|
||||
WGPUChainedStruct chain;
|
||||
void * hinstance;
|
||||
void * hwnd;
|
||||
} WGPUSurfaceDescriptorFromWindowsHWND;
|
||||
|
||||
typedef struct WGPUSurfaceDescriptorFromWindowsSwapChainPanel {
|
||||
WGPUChainedStruct chain;
|
||||
void * swapChainPanel;
|
||||
} WGPUSurfaceDescriptorFromWindowsSwapChainPanel;
|
||||
|
||||
typedef struct WGPUSurfaceDescriptorFromXlibWindow {
|
||||
WGPUChainedStruct chain;
|
||||
void * display;
|
||||
uint32_t window;
|
||||
} WGPUSurfaceDescriptorFromXlibWindow;
|
||||
|
||||
typedef struct WGPUSwapChainDescriptor {
|
||||
WGPUChainedStruct const * nextInChain;
|
||||
char const * label;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue