MCPcopy Create free account
hub / github.com/Kitware/VTK / CreateTexture

Method CreateTexture

Rendering/WebGPU/vtkWebGPUConfiguration.cxx:878–894  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

876
877//------------------------------------------------------------------------------
878wgpu::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//------------------------------------------------------------------------------
897wgpu::Texture vtkWebGPUConfiguration::CreateTexture(

Callers 8

Texture.hFile · 0.45
SendToWebGPUDeviceMethod · 0.45
CreateIdsAttachmentMethod · 0.45
CreateBasicRenderPassMethod · 0.45
RecreateTextureMethod · 0.45
AddTextureMethod · 0.45

Calls 1

Tested by

no test coverage detected