summaryrefslogtreecommitdiff
path: root/src/platform
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform')
-rw-r--r--src/platform/stub_types.h25
1 files changed, 18 insertions, 7 deletions
diff --git a/src/platform/stub_types.h b/src/platform/stub_types.h
index ff9cccf..f2810ea 100644
--- a/src/platform/stub_types.h
+++ b/src/platform/stub_types.h
@@ -107,7 +107,9 @@ struct WGPURenderPassColorAttachment {
WGPUTextureView view;
WGPULoadOp loadOp;
WGPUStoreOp storeOp;
- struct { float r, g, b, a; } clearValue;
+ struct {
+ float r, g, b, a;
+ } clearValue;
uint32_t depthSlice;
};
struct WGPUComputePassDescriptor {};
@@ -117,9 +119,15 @@ struct WGPUSurfaceTexture {
WGPUTexture texture;
WGPUSurfaceGetCurrentTextureStatus status;
};
-struct WGPUColor { float r, g, b, a; };
-struct WGPUExtent3D { uint32_t width, height, depthOrArrayLayers; };
-struct WGPUOrigin3D { uint32_t x, y, z; };
+struct WGPUColor {
+ float r, g, b, a;
+};
+struct WGPUExtent3D {
+ uint32_t width, height, depthOrArrayLayers;
+};
+struct WGPUOrigin3D {
+ uint32_t x, y, z;
+};
struct WGPUImageCopyTexture {};
struct WGPUImageCopyBuffer {};
struct WGPUTextureDataLayout {};
@@ -135,7 +143,8 @@ struct WGPUStringView {
};
static inline WGPUStringView str_view(const char* str) {
- if (!str) return {nullptr, 0};
+ if (!str)
+ return {nullptr, 0};
return {str, strlen(str)};
}
@@ -145,8 +154,10 @@ static inline WGPUStringView label_view(const char* str) {
}
// Platform shims (no-ops)
-static inline void platform_wgpu_wait_any(WGPUInstance) {}
-static inline void platform_wgpu_set_error_callback(WGPUDevice, void*) {}
+static inline void platform_wgpu_wait_any(WGPUInstance) {
+}
+static inline void platform_wgpu_set_error_callback(WGPUDevice, void*) {
+}
// Constants
#define WGPU_DEPTH_SLICE_UNDEFINED 0xffffffff