This class manages the creation/deletion/recreation/ of compute textures used by a compute pass.
A compute pass delegates calls that want to modify textures to this class.
Definition at line 31 of file vtkWebGPUComputePassTextureStorageInternals.h.
|
| virtual vtkTypeBool | IsA (const char *type) |
| | Return 1 if this class is the same type of (or a subclass of) the named class.
|
| |
| vtkWebGPUComputePassTextureStorageInternals * | NewInstance () const |
| |
| virtual void | SetParentPassWGPUConfiguration (vtkWebGPUConfiguration *) |
| | Sets the device that will be used by this texture storage when creating textures / texture views.
|
| |
| void | SetComputePass (vtkWeakPointer< vtkWebGPUComputePass > parentComputePass) |
| | Sets the compute pass that uses the textures and texture views used by this storage.
|
| |
| bool | CheckTextureIndex (std::size_t textureIndex, const std::string &callerFunctionName) |
| | Checks if a given index is suitable for indexing this->Textures.
|
| |
| bool | CheckTextureViewIndex (std::size_t textureViewIndex, const std::string &callerFunctionName) |
| | Checks if a given index is suitable for indexing this->TextureViews.
|
| |
| bool | CheckTextureCorrectness (vtkWebGPUComputeTexture *texture) |
| | Makes sure the texture is correct with regards to its properties (size, ...)
|
| |
| bool | CheckTextureViewCorrectness (vtkWebGPUComputeTextureView *textureView) |
| | Makes sure the texture view is correct with regards to its properties (binding, group, ...)
|
| |
| bool | CheckParentComputePass (const std::string &callerFunctionName) |
| | Checks whether or not the associated ParentComputePass and ParentPassDevice are non-null.
|
| |
| void | RecreateTexture (std::size_t textureIndex) |
| | Destroys and recreates the texture with the given index.
|
| |
| vtkSmartPointer< vtkWebGPUComputeTexture > | GetComputeTexture (std::size_t textureIndex) |
| | Retrieves the compute texture associated with the given texture index.
|
| |
| vtkSmartPointer< vtkWebGPUComputeTextureView > | GetTextureView (std::size_t textureViewIndex) |
| | Retrieves the texture view associated with the given texture view index.
|
| |
| void | RecreateComputeTexture (std::size_t textureIndex) |
| | Recreates a compute texture.
|
| |
| void | RecreateTextureViews (std::size_t textureIndex) |
| | Recreates all the texture views of a texture given its index.
|
| |
| void | RecreateTextureView (std::size_t textureViewIndex) |
| | Recreates a compute texture view.
|
| |
| wgpu::TextureView | CreateWebGPUTextureView (vtkSmartPointer< vtkWebGPUComputeTextureView > textureView, wgpu::Texture wgpuTexture) |
| | Utilitary method to create a wgpu::TextureView from a ComputeTextureView and the texture this wgpu::TextureView is going to be a view off.
|
| |
| void | UpdateComputeTextureAndViews (vtkSmartPointer< vtkWebGPUComputeTexture > texture, wgpu::Texture newWgpuTexture) |
| | Makes sure that the compute texture given in parameter internally points to the given newWgpuTexture.
|
| |
| int | AddRenderTexture (vtkSmartPointer< vtkWebGPUComputeRenderTexture > renderTexture) |
| | Adds a render texture to the storage.
|
| |
| int | AddTexture (vtkSmartPointer< vtkWebGPUComputeTexture > texture) |
| | Adds a texture to the storage and upload its data to the device.
|
| |
| int | AddTextureView (vtkSmartPointer< vtkWebGPUComputeTextureView > textureView) |
| | Adds a texture view to the compute pass and returns its index.
|
| |
| vtkSmartPointer< vtkWebGPUComputeTextureView > | CreateTextureView (std::size_t textureIndex) |
| | Returns a new texture view on the given texture (given by the index) that can be configured and then added to the compute pass by AddTextureView()
|
| |
| void | RecreateRenderTexture (vtkSmartPointer< vtkWebGPUComputeRenderTexture > renderTexture) |
| | Recreates a render texture given a new textureView and possibly new parameters as specified in the 'renderTexture' parameter.
|
| |
| void | DeleteTextureViews (std::size_t textureIndex) |
| | Deletes all the texture views of a given texture (given by its index)
|
| |
| void | RebindTextureView (std::size_t group, uint32_t binding, std::size_t textureViewIndex) |
| | This function allows the usage of multiple texture views on a single binding point (group / binding combination) in the shader (although not at the same time).
|
| |
| void | ReadTextureFromGPU (std::size_t textureIndex, int mipLevel, vtkWebGPUComputePass::TextureMapAsyncCallback callback, void *userdata) |
| |
| void | WriteTexture (std::size_t textureIndex, const void *bytes, std::size_t numBytes) |
| | Uploads the given data to the texture starting at pixel (0, 0)
|
| |
| void | ReleaseResources () |
| | Releases the textures & resources held by this texture storage.
|
| |
| | vtkBaseTypeMacro (vtkObject, vtkObjectBase) |
| |
| virtual void | DebugOn () |
| | Turn debugging output on.
|
| |
| virtual void | DebugOff () |
| | Turn debugging output off.
|
| |
| bool | GetDebug () |
| | Get the value of the debug flag.
|
| |
| void | SetDebug (bool debugFlag) |
| | Set the value of the debug flag.
|
| |
| virtual void | Modified () |
| | Update the modification time for this object.
|
| |
| virtual vtkMTimeType | GetMTime () |
| | Return this object's modified time.
|
| |
| void | PrintSelf (ostream &os, vtkIndent indent) override |
| | Methods invoked by print to print information about the object including superclasses.
|
| |
| void | RemoveObserver (unsigned long tag) |
| |
| void | RemoveObservers (unsigned long event) |
| |
| void | RemoveObservers (const char *event) |
| |
| void | RemoveAllObservers () |
| |
| vtkTypeBool | HasObserver (unsigned long event) |
| |
| vtkTypeBool | HasObserver (const char *event) |
| |
| vtkTypeBool | InvokeEvent (unsigned long event) |
| |
| vtkTypeBool | InvokeEvent (const char *event) |
| |
| std::string | GetObjectDescription () const override |
| | The object description printed in messages and PrintSelf output.
|
| |
| unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
| | Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
| |
| unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
| | Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
| |
| vtkCommand * | GetCommand (unsigned long tag) |
| | Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
| |
| void | RemoveObserver (vtkCommand *) |
| | Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
| |
| void | RemoveObservers (unsigned long event, vtkCommand *) |
| | Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
| |
| void | RemoveObservers (const char *event, vtkCommand *) |
| | Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
| |
| vtkTypeBool | HasObserver (unsigned long event, vtkCommand *) |
| | Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
| |
| vtkTypeBool | HasObserver (const char *event, vtkCommand *) |
| | Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
| |
| template<class U, class T> |
| unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
| | Overloads to AddObserver that allow developers to add class member functions as callbacks for events.
|
| |
| template<class U, class T> |
| unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
| | Overloads to AddObserver that allow developers to add class member functions as callbacks for events.
|
| |
| template<class U, class T> |
| unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
| | Allow user to set the AbortFlagOn() with the return value of the callback method.
|
| |
| vtkTypeBool | InvokeEvent (unsigned long event, void *callData) |
| | This method invokes an event and return whether the event was aborted or not.
|
| |
| vtkTypeBool | InvokeEvent (const char *event, void *callData) |
| | This method invokes an event and return whether the event was aborted or not.
|
| |
| virtual void | SetObjectName (const std::string &objectName) |
| | Set/get the name of this object for reporting purposes.
|
| |
| virtual std::string | GetObjectName () const |
| | Set/get the name of this object for reporting purposes.
|
| |
| const char * | GetClassName () const |
| | Return the class name as a string.
|
| |
| virtual vtkIdType | GetNumberOfGenerationsFromBase (const char *name) |
| | Given the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class).
|
| |
| virtual void | Delete () |
| | Delete a VTK object.
|
| |
| virtual void | FastDelete () |
| | Delete a reference to this object.
|
| |
| void | InitializeObjectBase () |
| |
| void | Print (ostream &os) |
| | Print an object to an ostream.
|
| |
| void | Register (vtkObjectBase *o) |
| | Increase the reference count (mark as used by another object).
|
| |
| virtual void | UnRegister (vtkObjectBase *o) |
| | Decrease the reference count (release by another object).
|
| |
| int | GetReferenceCount () |
| | Return the current reference count of this object.
|
| |
| void | SetReferenceCount (int) |
| | Sets the reference count.
|
| |
| bool | GetIsInMemkind () const |
| | A local state flag that remembers whether this object lives in the normal or extended memory space.
|
| |
| virtual void | PrintHeader (ostream &os, vtkIndent indent) |
| | Methods invoked by print to print information about the object including superclasses.
|
| |
| virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
| | Methods invoked by print to print information about the object including superclasses.
|
| |
| virtual bool | UsesGarbageCollector () const |
| | Indicate whether the class uses vtkGarbageCollector or not.
|
| |
|
| static vtkWebGPUComputePassTextureStorageInternals * | New () |
| |
| static vtkTypeBool | IsTypeOf (const char *type) |
| |
| static vtkWebGPUComputePassTextureStorageInternals * | SafeDownCast (vtkObjectBase *o) |
| |
| static wgpu::TextureDimension | ComputeTextureDimensionToWebGPU (vtkWebGPUComputeTexture::TextureDimension dimension) |
| | Internal method used to convert the user friendly Dimension enum to its wgpu::TextureDimension equivalent.
|
| |
| static wgpu::TextureViewDimension | ComputeTextureDimensionToViewDimension (vtkWebGPUComputeTexture::TextureDimension dimension) |
| | This function does a simple mapping between the dimension of the texture (vtkWebGPUComputeTexture::TextureDimension) and that of the texture view (wgpu::TextureViewDimension).
|
| |
| static wgpu::TextureFormat | ComputeTextureFormatToWebGPU (vtkWebGPUComputeTexture::TextureFormat format) |
| | Internal method used to convert the user friendly TextureFormat enum to its wgpu::TextureFormat equivalent.
|
| |
| static wgpu::TextureUsage | ComputeTextureModeToUsage (vtkWebGPUComputeTexture::TextureMode mode, const std::string &textureLabel) |
| | Internal method used to convert the user friendly TextureMode enum to its wgpu::TextureUsage equivalent.
|
| |
| static wgpu::StorageTextureAccess | ComputeTextureModeToShaderStorage (vtkWebGPUComputeTexture::TextureMode mode, const std::string &textureLabel) |
| | Internal method used to get the StorageTextureAccess mode associated with a TextureMode.
|
| |
| static wgpu::StorageTextureAccess | ComputeTextureViewModeToShaderStorage (vtkWebGPUComputeTextureView::TextureViewMode mode, const std::string &textureViewLabel) |
| | Internal method used to get the StorageTextureAccess mode associated with a TextureViewMode.
|
| |
| static wgpu::TextureSampleType | ComputeTextureSampleTypeToWebGPU (vtkWebGPUComputeTexture::TextureSampleType sampleType) |
| | Internal method used to convert the user friendly TextureSampleType enum to its wgpu::TextureSampleType equivalent.
|
| |
| static wgpu::TextureAspect | ComputeTextureViewAspectToWebGPU (vtkWebGPUComputeTextureView::TextureViewAspect aspect) |
| | Internal method used to convert the user friendly TextureAspect enum to its wgpu::TextureAspect equivalent.
|
| |
| static vtkObject * | New () |
| | Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
|
| |
| static void | BreakOnError () |
| | This method is called when vtkErrorMacro executes.
|
| |
| static void | SetGlobalWarningDisplay (vtkTypeBool val) |
| | This is a global flag that controls whether any debug, warning or error messages are displayed.
|
| |
| static void | GlobalWarningDisplayOn () |
| | This is a global flag that controls whether any debug, warning or error messages are displayed.
|
| |
| static void | GlobalWarningDisplayOff () |
| | This is a global flag that controls whether any debug, warning or error messages are displayed.
|
| |
| static vtkTypeBool | GetGlobalWarningDisplay () |
| | This is a global flag that controls whether any debug, warning or error messages are displayed.
|
| |
| static vtkTypeBool | IsTypeOf (const char *name) |
| | Return 1 if this class type is the same type of (or a subclass of) the named class.
|
| |
| static vtkIdType | GetNumberOfGenerationsFromBaseType (const char *name) |
| | Given a the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class).
|
| |
| static vtkObjectBase * | New () |
| | Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
|
| |
| static void | SetMemkindDirectory (const char *directoryname) |
| | The name of a directory, ideally mounted -o dax, to memory map an extended memory space within.
|
| |
| static bool | GetUsingMemkind () |
| | A global state flag that controls whether vtkObjects are constructed in the usual way (the default) or within the extended memory space.
|
| |