Searched refs:isWriteMode (Results 1 – 2 of 2) sorted by relevance
131 bool isWriteMode = descriptor->usage & WGPUMapMode_Write || descriptor->mappedAtCreation; in DoDeviceCreateBuffer() local142 if (isWriteMode) { in DoDeviceCreateBuffer()
464 bool isWriteMode = mode & wgpu::MapMode::Write; in ValidateMapAsync() local465 DAWN_INVALID_IF(!(isReadMode ^ isWriteMode), "Map mode (%s) is not one of %s or %s.", mode, in ValidateMapAsync()