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.
|
SoNode.RenderModes
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFBufferObject |
buffer
An
SoBufferObject containing data. |
SoSFEnum<SoShaderParameterBufferObject.BufferTypes> |
bufferType
The buffer type.
|
identifier, name
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoShaderParameterBufferObject() |
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, 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, getName, isDisposable, isSynchronizable, setName, setSynchronizable
getNativeResourceHandle
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 July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com