summaryrefslogtreecommitdiff
path: root/src/platform
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-14 15:14:25 +0100
committerskal <pascal.massimino@gmail.com>2026-02-14 15:14:25 +0100
commit8ce27b7e15f0fc65c8ee78950c7501660b936178 (patch)
tree391f32111b9a30a0156709b6c1ed2fae7b435d57 /src/platform
parente38be0dbf5816338ff97e2ee2f9adfff2902dc2b (diff)
style: Apply clang-format to codebase
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