Node that defines a compute shader. More...
#include <Inventor/nodes/SoComputeShader.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoComputeShader () | |
virtual ShaderType | getShaderType () const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static SbBool | isSupported (SoShaderObject::SourceType sourceType, SoState *state=nullptr) |
This node defines a compute shader, a shader stage used entirely for computing arbitrary information.
To store the result of the computation, an SoComputeShader may use SoShaderParameterImage or SoShaderParameterBufferObject with SoShaderParameterBufferObject::SHADER_STORAGE_BUFFER buffer type.
To fetch data, an SoComputeShader may use the above-mentioned parameter types, or regular texture access.
See SoShaderProgram for general information about using shaders and shader parameters.
See parent class SoShaderObject for details about using the inherited fields.
See SoComputeShaderScheduler for information about compute shader invocation.
Notes & Limitations:
sourceProgram | "" |
sourceType | FILENAME |
isActive | TRUE |
parameter | NULL |
SoVertexShader, SoFragmentShader, SoGeometryShader, SoShaderObject, SoShaderProgram, SoTessellationControlShader, SoTessellationEvaluationShader, SoUniformShaderParameter, SoShaderParameterBufferObject, SoShaderParameterImage
NOTE: node available since Open Inventor 10.12SoComputeShader::SoComputeShader | ( | ) |
static SoType SoComputeShader::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoShaderObject.
virtual ShaderType SoComputeShader::getShaderType | ( | ) | const [inline, virtual] |
Returns the shader type.
Implements SoShaderObject.
virtual SoType SoComputeShader::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoShaderObject.
static SbBool SoComputeShader::isSupported | ( | SoShaderObject::SourceType | sourceType, | |
SoState * | state = nullptr | |||
) | [static] |
Indicates if compute shaders in the specified language are supported by your graphics board.
When using a debug build of Open Inventor, warning messages such as "no context available" may be generated. You can ignore them or see SoGLExtension for an example of using SoGLContext to avoid them.