SoShaderParameterBufferObject Class Reference
[Shaders]

VSG extension Shader parameter node storing a buffer object. More...

#include <Inventor/nodes/SoShaderParameterBufferObject.h>

Inheritance diagram for SoShaderParameterBufferObject:
SoShaderParameter SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Types

enum  BufferType { SHADER_STORAGE_BUFFER }

Public Member Functions

virtual SoType getTypeId () const
 SoShaderParameterBufferObject ()

Static Public Member Functions

static SoType getClassTypeId ()

Public Attributes

SoSFInt32 bindingPoint
SoSFBufferObject buffer
SoSFEnum bufferType

Friends

class SoGLShaderParameterBufferObjectElement

Detailed Description

VSG extension Shader parameter node storing a buffer object.

This node allows the application to provide a buffer object to a shader program. The shader program can access this buffer as a GLSL Shader Storage Buffer Object.

SoShaderParameterBufferObject nodes are usually added to the shader program's bufferObjects field to affect only that specific shader program, but can also be inserted in the scene graph and affect all subsequent shader programs.

NOTE: If inserted directly in the scene graph, SoShaderParameterBufferObject is not cacheable. This means that all parent SoSeparator nodes will not be able to create render caches. This may reduce rendering performance.

FILE FORMAT/DEFAULT

SEE ALSO

SoShaderParameter, SoUniformShaderParameter. SoShaderObject, SoShaderProgram.

NOTE: node available since Open Inventor 9.8


Member Enumeration Documentation

List of buffer object types supported as shader parameter.

Enumerator:
SHADER_STORAGE_BUFFER 

Constructor & Destructor Documentation

SoShaderParameterBufferObject::SoShaderParameterBufferObject (  ) 

Member Function Documentation

static SoType SoShaderParameterBufferObject::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoShaderParameter.

virtual SoType SoShaderParameterBufferObject::getTypeId (  )  const [virtual]

Returns the type identifier for this specific instance.

Reimplemented from SoShaderParameter.


Friends And Related Function Documentation

friend class SoGLShaderParameterBufferObjectElement [friend]

Member Data Documentation

An integer matching the 'binding' value specified in the GLSL shader code.

Default is 0.

An SoBufferObject containing data.

In order to avoid a CPU to GPU copy, it is recommended to use an SoGLBufferObject. Default is null.

The buffer type.

Default is SHADER_STORAGE_BUFFER. The only legal value is SHADER_STORAGE_BUFFER for now.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/