From 1bdf8e3179fdf9f1011759a5eba8e285399bcd8c Mon Sep 17 00:00:00 2001 From: Kai Ninomiya Date: Mon, 9 Dec 2024 17:15:16 -0500 Subject: [PATCH] Remove GetCurrentTextureStatus_OutOfMemory This doesn't seem super likely to be handleable distinctly from Lost, but if it is the implementations (wgpu-native) can expose it as an extension. It doesn't exist in JS or Dawn. Issue: 401 --- webgpu.h | 7 +------ webgpu.yml | 2 -- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/webgpu.h b/webgpu.h index 6107babe..d5b9337b 100644 --- a/webgpu.h +++ b/webgpu.h @@ -863,14 +863,9 @@ typedef enum WGPUSurfaceGetCurrentTextureStatus { WGPUSurfaceGetCurrentTextureStatus_Lost = 0x00000005, /** * `0x00000006`. - * The system ran out of memory. - */ - WGPUSurfaceGetCurrentTextureStatus_OutOfMemory = 0x00000006, - /** - * `0x00000007`. * The surface is not configured, or there was an @ref OutStructChainError. */ - WGPUSurfaceGetCurrentTextureStatus_Error = 0x00000007, + WGPUSurfaceGetCurrentTextureStatus_Error = 0x00000006, WGPUSurfaceGetCurrentTextureStatus_Force32 = 0x7FFFFFFF } WGPUSurfaceGetCurrentTextureStatus WGPU_ENUM_ATTRIBUTE; diff --git a/webgpu.yml b/webgpu.yml index 9b4a5ee0..a6e8346b 100644 --- a/webgpu.yml +++ b/webgpu.yml @@ -823,8 +823,6 @@ enums: doc: The surface is too different to be used, compared to when it was originally created. - name: lost doc: The connection to whatever owns the surface was lost. - - name: out_of_memory - doc: The system ran out of memory. - name: error doc: The surface is not configured, or there was an @ref OutStructChainError. - name: texture_aspect