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

Method GetWebGPUAddressMode

Rendering/WebGPU/vtkWebGPURenderTextureDeviceResource.cxx:379–392  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

377
378//------------------------------------------------------------------------------
379wgpu::AddressMode vtkWebGPURenderTextureDeviceResource::GetWebGPUAddressMode(AddressMode mode)
380{
381 switch (mode)
382 {
383 case AddressMode::CLAMP_TO_EDGE:
384 return wgpu::AddressMode::ClampToEdge;
385 case AddressMode::REPEAT:
386 return wgpu::AddressMode::Repeat;
387 case AddressMode::MIRROR_REPEAT:
388 return wgpu::AddressMode::MirrorRepeat;
389 default:
390 return wgpu::AddressMode::Undefined;
391 }
392}
393
394//------------------------------------------------------------------------------
395wgpu::SamplerBindingType vtkWebGPURenderTextureDeviceResource::GetWebGPUSamplerBindingType(

Callers 1

SendToWebGPUDeviceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected