Module wgpu.utils
Utility structures and functions.
			
			
				Functions
				
					
					
						| Name | Description | 
					
						| 
								createBuffer(device, usage, data, label)
							 | Creates a buffer in which datais loaded. | 
					
						| 
								resize(extant, device, width, height)
							 | Recreates a new swap chain given an extantswap chain and a new size. | 
					
						| 
								resize(extant, device, width, height)
							 | Recreates a new texture given an extanttexture and a new size. | 
					
						| 
								resize(extant, device, size)
							 | Recreates a new buffer given an extantbuffer and a new size. | 
					
						| 
								valid(resource)
							 | Whether a handle to a wgpu-managedresourceis valid, i.e.resourceis notnulland it's currently initialized. | 
					
						| 
								viewDimension(dimension, depthOrArrayLayers)
							 | Convert the given texture dimensioninto a texture view dimension. | 
				
			
			
			
				Manifest constants
				
					
					
						| Name | Type | Description | 
					
						| isResource |  | Detects whether Tis a handle to awgpu-managed resource. |