4#ifndef vtkWebGPUTexture_h
5#define vtkWebGPUTexture_h
8#include "vtkRenderingWebGPUModule.h"
11VTK_ABI_NAMESPACE_BEGIN
38 DEPTH_24_PLUS_8_STENCIL
121 unsigned int GetWidth()
const {
return Extents[0]; }
122 void SetWidth(
unsigned int width) { Extents[0] = width; }
130 void SetHeight(
unsigned int height) { Extents[1] = height; }
137 unsigned int GetDepth()
const {
return Extents[2]; }
138 void SetDepth(
unsigned int depth) { Extents[2] = depth; }
153 VTK_WRAPEXCLUDE virtual
void SetSize(
unsigned int x,
unsigned int y,
unsigned int z = 1);
193 vtkGetMacro(MipLevelCount,
unsigned int);
194 vtkSetMacro(MipLevelCount,
unsigned int);
207 unsigned int Extents[3] = { 0, 0, 1 };
210 TextureDimension Dimension = TextureDimension::DIMENSION_2D;
213 TextureFormat Format = TextureFormat::RGBA8_UNORM;
216 TextureMode Mode = TextureMode::UNDEFINED;
219 TextureSampleType SampleType = TextureSampleType::FLOAT;
222 unsigned int MipLevelCount = 1;
a simple class to control print indentation
abstract base class for most VTK objects
Abstraction class for WebGPU textures.
VTK_WRAPEXCLUDE void GetSize(unsigned int &x, unsigned int &y) const
Get/set the size of the texture.
void SetDepth(unsigned int depth)
Get/set the depth in pixels of the texture.
VTK_WRAPEXCLUDE void GetSize(unsigned int &x, unsigned int &y, unsigned int &z) const
Get/set the size of the texture.
unsigned int GetWidth() const
Get/set the width in pixels of the texture.
unsigned int GetPixelComponentsCount() const
Returns the number of components per pixel for the format of this texture.
VTK_WRAPEXCLUDE void GetSize(unsigned int *xyz)
Get/set the size of the texture.
unsigned int GetHeight() const
Get/set the height in pixels of the texture.
void SetHeight(unsigned int height)
Get/set the height in pixels of the texture.
TextureMode
How will the texture be used by the shader.
TextureDataType
Because the compute texture can accept multiple data types as input (std::vector, vtkDataArray) but w...
TextureDimension
How the texture data is arranged.
unsigned int * GetSize()
Get/set the size of the texture.
void SetWidth(unsigned int width)
Get/set the width in pixels of the texture.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
unsigned int GetDepth() const
Get/set the depth in pixels of the texture.
TextureSampleType
Determines what kind of value is returned when reading from the texture in the compute shader.
virtual unsigned int GetBytesPerPixel() const
Number of bytes used per pixel.
static vtkWebGPUTexture * New()
TextureFormat
RGBA8_UNORM: Uses RGB + alpha.
#define VTK_SIZEHINT(...)