public class SoShaderParameterBufferObject extends SoShaderParameter
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:
SoShaderParameterBufferObject
{
bindingPoint | 0 |
buffer | NULL |
bufferType | SHADER_STORAGE_BUFFER |
See also:
SoShaderParameter
, SoUniformShaderParameter
. SoShaderObject
, SoShaderProgram
.
Modifier and Type | Class and Description |
---|---|
static class |
SoShaderParameterBufferObject.BufferTypes
List of buffer object types supported as shader parameter.
|
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFInt32 |
bindingPoint
An integer matching the 'binding' value specified in the GLSL shader code.
|
SoSFBufferObject |
buffer
An
SoBufferObject containing data. |
SoSFEnum<SoShaderParameterBufferObject.BufferTypes> |
bufferType
The buffer type.
|
static int |
SHADER_STORAGE_BUFFER
Deprecated.
|
identifier, name
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoShaderParameterBufferObject() |
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int SHADER_STORAGE_BUFFER
SoShaderParameterBufferObject.BufferTypes.SHADER_STORAGE_BUFFER
instead.public final SoSFInt32 bindingPoint
public final SoSFBufferObject buffer
SoBufferObject
containing data.
In order to avoid a CPU to GPU copy, it is recommended to use an SoGLBufferObject
. Default is null.public final SoSFEnum<SoShaderParameterBufferObject.BufferTypes> bufferType
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com