|
VTK
9.7.20261127
|
#include <vtkWebGPUShaderProperty.h>
represent GPU shader properties
vtkWebGPUPolyDataMapper's shaders are Slang (Rendering/WebGPU/slang/vtkPolyDataSurfaceSlang.slang) and are customized with Slang types implementing SlangKit interfaces, selected by name. A specialization of an interface that the program does not take warns and is ignored.
String shader replacements (AddVertexShaderReplacement and friends) and shader code (SetVertexShaderCode and friends) are not supported: they warn and are ignored. Their typed equivalent is IShaderHooks (module slangkit_hooks): one method per insertion point, each a no-op unless overridden.
| Method | Runs | OpenGL tags it replaces |
|---|---|---|
| vertex() | vertex stage, before projection | CustomBegin, Normal, TCoord, Color |
| position() | vertex stage, after projection | PositionVC, CustomEnd |
| clip() | fragment stage, first; false discards | Clip |
| color() | after VTK's colors (scalars, textures) | Color, TCoord, TMap |
| normal() | after VTK's normal and edges | Normal, Edges |
| lit() | after lighting | Light, PBR |
| output() | last: color, depth, picking ids | Depth, Coincident, Picking, PrimID |
The module can also be read from a .slang file (LoadSlangModule), where Slang's language server (slangd) gives completion and diagnostics: point its search paths at SlangKit's shaders directory.
Higher-level interfaces (module slangkit_shading) replace whole parts of the shading and are shared with anari-webgpu: IMaterial, ILightingModel, INormalModifier, ISurfaceOutput (discard, final color, depth) and IVertexModifier.
A module or type that fails to compile reports an error, and the mapper renders its program's default types instead. Types with fields are not supported yet and are reported the same way. Selecting any type, or a module, turns the Slang shaders on for all of the mapper's pipelines (points, lines, triangles). UseSlang turns them on with the default types, and SetGlobalUseSlang (or VTK_WEBGPU_SLANG=1) turns them on for every prop.
Definition at line 77 of file vtkWebGPUShaderProperty.h.
Public Types | |
| typedef vtkShaderProperty | Superclass |
| Public Types inherited from vtkShaderProperty | |
| typedef vtkObject | Superclass |
Public Member Functions | |
| virtual vtkTypeBool | IsA (const char *type) |
| Return 1 if this class is the same type of (or a subclass of) the named class. | |
| vtkWebGPUShaderProperty * | NewInstance () const |
| virtual void | SetUseSlang (bool) |
| Render this prop with the Slang programs and their default types. | |
| virtual bool | GetUseSlang () |
| virtual void | UseSlangOn () |
| virtual void | UseSlangOff () |
| vtkSetStdStringFromCharMacro (SlangModule) | |
| vtkGetCharFromStdStringMacro (SlangModule) | |
| bool | LoadSlangModule (const char *fileName) |
| void | AddSlangSearchPath (const char *directory) |
| void | RemoveAllSlangSearchPaths () |
| int | GetNumberOfSlangSearchPaths () |
| const char * | GetNthSlangSearchPath (int n) |
| void | SetSlangSpecialization (const char *interfaceName, const char *typeName) |
| const char * | GetSlangSpecialization (const char *interfaceName) |
| void | RemoveAllSlangSpecializations () |
| int | GetNumberOfSlangSpecializations () |
| const char * | GetNthSlangSpecializationInterface (int n) |
| const char * | GetNthSlangSpecializationType (int n) |
| bool | HasSlang () |
| void | AddVertexShaderReplacement (const std::string &, bool, const std::string &, bool) override |
| Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead. | |
| void | AddFragmentShaderReplacement (const std::string &, bool, const std::string &, bool) override |
| Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead. | |
| void | AddGeometryShaderReplacement (const std::string &, bool, const std::string &, bool) override |
| Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead. | |
| void | AddTessControlShaderReplacement (const std::string &, bool, const std::string &, bool) override |
| Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead. | |
| void | AddTessEvaluationShaderReplacement (const std::string &, bool, const std::string &, bool) override |
| Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead. | |
| int | GetNumberOfShaderReplacements () override |
| Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead. | |
| std::string | GetNthShaderReplacementTypeAsString (vtkIdType) override |
| Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead. | |
| void | GetNthShaderReplacement (vtkIdType, std::string &, bool &, std::string &, bool &) override |
| Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead. | |
| void | ClearVertexShaderReplacement (const std::string &, bool) override |
| Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead. | |
| void | ClearFragmentShaderReplacement (const std::string &, bool) override |
| Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead. | |
| void | ClearGeometryShaderReplacement (const std::string &, bool) override |
| Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead. | |
| void | ClearTessControlShaderReplacement (const std::string &, bool) override |
| Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead. | |
| void | ClearTessEvaluationShaderReplacement (const std::string &, bool) override |
| Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead. | |
| void | ClearAllVertexShaderReplacements () override |
| Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead. | |
| void | ClearAllFragmentShaderReplacements () override |
| Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead. | |
| void | ClearAllGeometryShaderReplacements () override |
| Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead. | |
| void | ClearAllTessControlShaderReplacements () override |
| Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead. | |
| void | ClearAllTessEvalShaderReplacements () override |
| Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead. | |
| void | ClearAllShaderReplacements () override |
| Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead. | |
| Public Member Functions inherited from vtkShaderProperty | |
| vtkShaderProperty * | NewInstance () const |
| void | PrintSelf (ostream &os, vtkIndent indent) override |
| Methods invoked by print to print information about the object including superclasses. | |
| void | DeepCopy (vtkShaderProperty *p) |
| Assign one property to another. | |
| vtkMTimeType | GetShaderMTime () |
| GetShaderMTime returns the last time a modification was made that affected the code of the shader (either code replacement was changed or one or more uniform variables were added or removed. | |
| bool | HasVertexShaderCode () |
| Allow the program to set the shader codes used directly instead of using the built in templates. | |
| bool | HasFragmentShaderCode () |
| Allow the program to set the shader codes used directly instead of using the built in templates. | |
| bool | HasGeometryShaderCode () |
| Allow the program to set the shader codes used directly instead of using the built in templates. | |
| bool | HasTessControlShaderCode () |
| Allow the program to set the shader codes used directly instead of using the built in templates. | |
| bool | HasTessEvalShaderCode () |
| Allow the program to set the shader codes used directly instead of using the built in templates. | |
| virtual void | SetVertexShaderCode (const char *) |
| Allow the program to set the shader codes used directly instead of using the built in templates. | |
| virtual char * | GetVertexShaderCode () |
| Allow the program to set the shader codes used directly instead of using the built in templates. | |
| virtual void | SetFragmentShaderCode (const char *) |
| Allow the program to set the shader codes used directly instead of using the built in templates. | |
| virtual char * | GetFragmentShaderCode () |
| Allow the program to set the shader codes used directly instead of using the built in templates. | |
| virtual void | SetGeometryShaderCode (const char *) |
| Allow the program to set the shader codes used directly instead of using the built in templates. | |
| virtual char * | GetGeometryShaderCode () |
| Allow the program to set the shader codes used directly instead of using the built in templates. | |
| virtual void | SetTessControlShaderCode (const char *) |
| Allow the program to set the shader codes used directly instead of using the built in templates. | |
| virtual char * | GetTessControlShaderCode () |
| Allow the program to set the shader codes used directly instead of using the built in templates. | |
| virtual void | SetTessEvaluationShaderCode (const char *) |
| Allow the program to set the shader codes used directly instead of using the built in templates. | |
| virtual char * | GetTessEvaluationShaderCode () |
| Allow the program to set the shader codes used directly instead of using the built in templates. | |
| virtual vtkUniforms * | GetFragmentCustomUniforms () |
| The Uniforms object allows to set custom uniform variables that are used in replacement shader code. | |
| virtual vtkUniforms * | GetVertexCustomUniforms () |
| The Uniforms object allows to set custom uniform variables that are used in replacement shader code. | |
| virtual vtkUniforms * | GetGeometryCustomUniforms () |
| The Uniforms object allows to set custom uniform variables that are used in replacement shader code. | |
| virtual vtkUniforms * | GetTessControlCustomUniforms () |
| The Uniforms object allows to set custom uniform variables that are used in replacement shader code. | |
| virtual vtkUniforms * | GetTessEvaluationCustomUniforms () |
| The Uniforms object allows to set custom uniform variables that are used in replacement shader code. | |
| Public Member Functions inherited from vtkObject | |
| 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 | 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. | |
| Public Member Functions inherited from vtkObjectBase | |
| 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 Public Member Functions | |
| static vtkWebGPUShaderProperty * | New () |
| static vtkOverrideAttribute * | CreateOverrideAttributes () |
| static vtkTypeBool | IsTypeOf (const char *type) |
| static vtkWebGPUShaderProperty * | SafeDownCast (vtkObjectBase *o) |
| static void | SetGlobalUseSlang (bool use) |
| Render every WebGPU prop with the Slang shaders, as if each shader property had UseSlang on. | |
| static bool | GetGlobalUseSlang () |
| Render every WebGPU prop with the Slang shaders, as if each shader property had UseSlang on. | |
| static void | GlobalUseSlangOn () |
| Render every WebGPU prop with the Slang shaders, as if each shader property had UseSlang on. | |
| static void | GlobalUseSlangOff () |
| Render every WebGPU prop with the Slang shaders, as if each shader property had UseSlang on. | |
| Static Public Member Functions inherited from vtkShaderProperty | |
| static vtkTypeBool | IsTypeOf (const char *type) |
| static vtkShaderProperty * | SafeDownCast (vtkObjectBase *o) |
| static vtkShaderProperty * | New () |
| Construct object with no shader replacements. | |
| Static Public Member Functions inherited from vtkObject | |
| 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 Public Member Functions inherited from vtkObjectBase | |
| 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. | |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkWebGPUShaderProperty () | |
| ~vtkWebGPUShaderProperty () override | |
| Protected Member Functions inherited from vtkShaderProperty | |
| vtkShaderProperty () | |
| ~vtkShaderProperty () override | |
| Protected Member Functions inherited from vtkObject | |
| vtkObject () | |
| ~vtkObject () override | |
| void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) override |
| void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) override |
| void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=nullptr) |
| These methods allow a command to exclusively grab all events. | |
| void | InternalReleaseFocus () |
| These methods allow a command to exclusively grab all events. | |
| Protected Member Functions inherited from vtkObjectBase | |
| vtkObjectBase () | |
| virtual | ~vtkObjectBase () |
| virtual void | ReportReferences (vtkGarbageCollector *) |
| vtkObjectBase (const vtkObjectBase &) | |
| void | operator= (const vtkObjectBase &) |
Protected Attributes | |
| bool | UseSlang = false |
| std::string | SlangModule |
| std::vector< std::pair< std::string, std::string > > | SlangSpecializations |
| std::vector< std::string > | SlangSearchPaths |
| Protected Attributes inherited from vtkShaderProperty | |
| char * | VertexShaderCode |
| char * | FragmentShaderCode |
| char * | GeometryShaderCode |
| char * | TessControlShaderCode |
| char * | TessEvaluationShaderCode |
| vtkNew< vtkUniforms > | FragmentCustomUniforms |
| vtkNew< vtkUniforms > | VertexCustomUniforms |
| vtkNew< vtkUniforms > | GeometryCustomUniforms |
| vtkNew< vtkUniforms > | TessControlCustomUniforms |
| vtkNew< vtkUniforms > | TessEvaluationCustomUniforms |
| Protected Attributes inherited from vtkObject | |
| bool | Debug |
| vtkTimeStamp | MTime |
| vtkSubjectHelper * | SubjectHelper |
| std::string | ObjectName |
| Protected Attributes inherited from vtkObjectBase | |
| std::atomic< int32_t > | ReferenceCount |
| vtkWeakPointerBase ** | WeakPointers |
Additional Inherited Members | |
| Static Protected Member Functions inherited from vtkObjectBase | |
| static vtkMallocingFunction | GetCurrentMallocFunction () |
| static vtkReallocingFunction | GetCurrentReallocFunction () |
| static vtkFreeingFunction | GetCurrentFreeFunction () |
| static vtkFreeingFunction | GetAlternateFreeFunction () |
Definition at line 83 of file vtkWebGPUShaderProperty.h.
|
protected |
|
overrideprotected |
|
static |
|
static |
|
static |
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class.
Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkShaderProperty.
|
static |
|
protectedvirtual |
Reimplemented from vtkShaderProperty.
| vtkWebGPUShaderProperty * vtkWebGPUShaderProperty::NewInstance | ( | ) | const |
|
overridevirtual |
Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead.
These warn and do nothing.
Implements vtkShaderProperty.
|
overridevirtual |
Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead.
These warn and do nothing.
Implements vtkShaderProperty.
|
overridevirtual |
Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead.
These warn and do nothing.
Implements vtkShaderProperty.
|
overridevirtual |
Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead.
These warn and do nothing.
Implements vtkShaderProperty.
|
overridevirtual |
Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead.
These warn and do nothing.
Implements vtkShaderProperty.
|
inlineoverridevirtual |
Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead.
These warn and do nothing.
Implements vtkShaderProperty.
Definition at line 97 of file vtkWebGPUShaderProperty.h.
|
inlineoverridevirtual |
Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead.
These warn and do nothing.
Implements vtkShaderProperty.
Definition at line 98 of file vtkWebGPUShaderProperty.h.
|
inlineoverridevirtual |
Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead.
These warn and do nothing.
Implements vtkShaderProperty.
Definition at line 99 of file vtkWebGPUShaderProperty.h.
|
inlineoverridevirtual |
Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead.
These warn and do nothing.
Implements vtkShaderProperty.
Definition at line 100 of file vtkWebGPUShaderProperty.h.
|
inlineoverridevirtual |
Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead.
These warn and do nothing.
Implements vtkShaderProperty.
Definition at line 101 of file vtkWebGPUShaderProperty.h.
|
inlineoverridevirtual |
Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead.
These warn and do nothing.
Implements vtkShaderProperty.
Definition at line 102 of file vtkWebGPUShaderProperty.h.
|
inlineoverridevirtual |
Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead.
These warn and do nothing.
Implements vtkShaderProperty.
Definition at line 103 of file vtkWebGPUShaderProperty.h.
|
inlineoverridevirtual |
Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead.
These warn and do nothing.
Implements vtkShaderProperty.
Definition at line 104 of file vtkWebGPUShaderProperty.h.
|
inlineoverridevirtual |
Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead.
These warn and do nothing.
Implements vtkShaderProperty.
Definition at line 105 of file vtkWebGPUShaderProperty.h.
|
inlineoverridevirtual |
Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead.
These warn and do nothing.
Implements vtkShaderProperty.
Definition at line 106 of file vtkWebGPUShaderProperty.h.
|
inlineoverridevirtual |
Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead.
These warn and do nothing.
Implements vtkShaderProperty.
Definition at line 107 of file vtkWebGPUShaderProperty.h.
|
inlineoverridevirtual |
Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead.
These warn and do nothing.
Implements vtkShaderProperty.
Definition at line 108 of file vtkWebGPUShaderProperty.h.
|
inlineoverridevirtual |
Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead.
These warn and do nothing.
Implements vtkShaderProperty.
Definition at line 109 of file vtkWebGPUShaderProperty.h.
|
inlineoverridevirtual |
Not supported: the Slang shaders are customized with typed hooks (IShaderHooks, see the class documentation) instead.
These warn and do nothing.
Implements vtkShaderProperty.
Definition at line 110 of file vtkWebGPUShaderProperty.h.
|
virtual |
Render this prop with the Slang programs and their default types.
Actors with PBR interpolation keep their WGSL shaders.
|
virtual |
|
virtual |
|
virtual |
|
static |
Render every WebGPU prop with the Slang shaders, as if each shader property had UseSlang on.
Props rebuild their pipelines when this changes. The initial value is on when the environment variable VTK_WEBGPU_SLANG is 1, and off otherwise.
|
static |
Render every WebGPU prop with the Slang shaders, as if each shader property had UseSlang on.
Props rebuild their pipelines when this changes. The initial value is on when the environment variable VTK_WEBGPU_SLANG is 1, and off otherwise.
|
inlinestatic |
Render every WebGPU prop with the Slang shaders, as if each shader property had UseSlang on.
Props rebuild their pipelines when this changes. The initial value is on when the environment variable VTK_WEBGPU_SLANG is 1, and off otherwise.
Definition at line 130 of file vtkWebGPUShaderProperty.h.
|
inlinestatic |
Render every WebGPU prop with the Slang shaders, as if each shader property had UseSlang on.
Props rebuild their pipelines when this changes. The initial value is on when the environment variable VTK_WEBGPU_SLANG is 1, and off otherwise.
Definition at line 131 of file vtkWebGPUShaderProperty.h.
| vtkWebGPUShaderProperty::vtkSetStdStringFromCharMacro | ( | SlangModule | ) |
| vtkWebGPUShaderProperty::vtkGetCharFromStdStringMacro | ( | SlangModule | ) |
| bool vtkWebGPUShaderProperty::LoadSlangModule | ( | const char * | fileName | ) |
| void vtkWebGPUShaderProperty::AddSlangSearchPath | ( | const char * | directory | ) |
| void vtkWebGPUShaderProperty::RemoveAllSlangSearchPaths | ( | ) |
| int vtkWebGPUShaderProperty::GetNumberOfSlangSearchPaths | ( | ) |
| const char * vtkWebGPUShaderProperty::GetNthSlangSearchPath | ( | int | n | ) |
| void vtkWebGPUShaderProperty::SetSlangSpecialization | ( | const char * | interfaceName, |
| const char * | typeName ) |
| const char * vtkWebGPUShaderProperty::GetSlangSpecialization | ( | const char * | interfaceName | ) |
| void vtkWebGPUShaderProperty::RemoveAllSlangSpecializations | ( | ) |
| int vtkWebGPUShaderProperty::GetNumberOfSlangSpecializations | ( | ) |
| const char * vtkWebGPUShaderProperty::GetNthSlangSpecializationInterface | ( | int | n | ) |
| const char * vtkWebGPUShaderProperty::GetNthSlangSpecializationType | ( | int | n | ) |
| bool vtkWebGPUShaderProperty::HasSlang | ( | ) |
|
protected |
Definition at line 163 of file vtkWebGPUShaderProperty.h.
|
protected |
Definition at line 164 of file vtkWebGPUShaderProperty.h.
|
protected |
Definition at line 165 of file vtkWebGPUShaderProperty.h.
|
protected |
Definition at line 166 of file vtkWebGPUShaderProperty.h.