------------------------------------------------------------------------------
| 876 | |
| 877 | //------------------------------------------------------------------------------ |
| 878 | wgpu::Texture vtkWebGPUConfiguration::CreateTexture(wgpu::Extent3D extents, |
| 879 | wgpu::TextureDimension dimension, wgpu::TextureFormat format, wgpu::TextureUsage usage, |
| 880 | int mipLevelCount, const char* label /*=nullptr*/) |
| 881 | { |
| 882 | wgpu::TextureDescriptor textureDescriptor; |
| 883 | textureDescriptor.dimension = dimension; |
| 884 | textureDescriptor.format = format; |
| 885 | textureDescriptor.size = extents; |
| 886 | textureDescriptor.mipLevelCount = mipLevelCount; |
| 887 | textureDescriptor.nextInChain = nullptr; |
| 888 | textureDescriptor.sampleCount = 1; |
| 889 | textureDescriptor.usage = usage; |
| 890 | textureDescriptor.viewFormatCount = 0; |
| 891 | textureDescriptor.viewFormats = nullptr; |
| 892 | textureDescriptor.label = label; |
| 893 | return this->CreateTexture(textureDescriptor); |
| 894 | } |
| 895 | |
| 896 | //------------------------------------------------------------------------------ |
| 897 | wgpu::Texture vtkWebGPUConfiguration::CreateTexture( |
no test coverage detected