Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoShaderParameterBufferObject.h
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2024 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20
21#pragma once
22
23#include <Inventor/nodes/SoNode.h>
24#include <Inventor/SbPImpl.h>
25#include <Inventor/misc/SoRef.h>
26#include <Inventor/fields/SoSFInt32.h>
27#include <Inventor/fields/SoSFBufferObject.h>
28#include <Inventor/fields/SoSFEnum.h>
29#include <Inventor/SbEnums.h>
30#include <Inventor/nodes/SoShaderParameter.h>
31
32SO_PIMPL_BASE_PUBLIC_DECLARATION(SoShaderParameterBufferObject);
33
67{
68 SO_PIMPL_BASE_PUBLIC_HEADER(SoShaderParameterBufferObject);
70 RENDERER_RESOURCE(SoShaderParameterBufferObject);
71
72 public:
73
78 SHADER_STORAGE_BUFFER = SbEnums::SHADER_STORAGE_BUFFER,
79 UNIFORM_BUFFER = SbEnums::UNIFORM_BUFFER
80 };
81
83
87
91
92 private:
93 void GLRender(SoGLRenderAction* action);
94
95 private:
96 static void initClass() ;
97 static void exitClass() ;
98
99 void fieldHasChanged(SoField* field) override;
100
101 private:
103};
104
Base class for all fields.
Definition SoField.h:234
Renders a scene graph using Open Inventor's Render Engine.
Field containing an enumerated value.
Definition SoSFEnum.h:89
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Shader parameter...
BufferType
List of buffer object types supported as shader parameter.
SoSFBufferObject buffer
An SoBufferObject containing data.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...