VR-Forces 5.0.3 Developer's Guide
Home
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvOsg
DtVariableRateShadingImagePalette.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2020 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvOsg/DtVariableRateShadingImage.h
>
13
14
namespace
makVrv
15
{
16
23
class
DT_DLL_VRVOSG
DtVariableRateShadingImagePalette
:
public
osg::Referenced
24
{
25
private
:
27
DtVariableRateShadingImagePalette
(
const
DtVariableRateShadingImagePalette
& other);
28
30
DtVariableRateShadingImagePalette
& operator=(
const
DtVariableRateShadingImagePalette
&other);
31
32
public
:
34
DtVariableRateShadingImagePalette
(
DtDe
& de);
35
37
void
initGLObjects(osg::State& state);
38
40
std::vector<GLenum>& paletteData();
41
43
void
populatePaletteData(
const
std::vector<GLuint>& data,
GLuint
defaultValue);
44
46
void
bindShadingRatePalette(osg::State& state);
47
49
bool
isInitalised();
50
51
protected
:
53
virtual
~
DtVariableRateShadingImagePalette
();
54
55
protected
:
56
DtDe
&
myDe
;
57
58
VariableRateShadingExtensions
*
myExt
;
59
60
GLint
myShadingRateImagePaletteSize
;
61
std::vector<GLenum>
myShadingRatePaletteData
;
62
};
63
66
class
DT_DLL_VRVOSG
DtVariableRateShadingImagePaletteStateAttribute
:
public
osg::StateAttribute
67
{
68
public
:
69
71
static
const
osg::StateAttribute::Type DtVariableRateShadingImagePaletteStateAttributeType = (osg::StateAttribute::Type)3001;
72
74
DtVariableRateShadingImagePaletteStateAttribute
(
DtVariableRateShadingImagePalette
* palette = NULL);
75
77
~
DtVariableRateShadingImagePaletteStateAttribute
();
78
80
DtVariableRateShadingImagePaletteStateAttribute
(
const
DtVariableRateShadingImagePaletteStateAttribute
& stateAttrib,
const
osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
81
82
META_StateAttribute(osg,
DtVariableRateShadingImagePaletteStateAttribute
, DtVariableRateShadingImagePaletteStateAttributeType);
83
85
virtual
bool
isTextureAttribute()
const
;
86
88
virtual
int
compare(
const
osg::StateAttribute& sa)
const
;
89
91
virtual
void
apply(osg::State&)
const
;
92
94
virtual
void
compileGLObjects(osg::State&)
const
;
95
97
virtual
void
releaseGLObjects(osg::State* = 0)
const
;
98
100
DtVariableRateShadingImagePalette
* palette()
const
;
101
102
private
:
103
104
osg::ref_ptr<DtVariableRateShadingImagePalette>
myShadingRateImagePalette
;
105
};
106
}
makVrv::DtVariableRateShadingImagePalette::myShadingRateImagePaletteSize
GLint myShadingRateImagePaletteSize
Definition:
DtVariableRateShadingImagePalette.h:60
makVrv::DtVariableRateShadingImagePalette::myDe
DtDe & myDe
Definition:
DtVariableRateShadingImagePalette.h:56
DT_DLL_VRVOSG
#define DT_DLL_VRVOSG
Definition:
vrvOsg.h:23
osg::ref_ptr
Definition:
featureContext.h:37
GLuint
unsigned int GLuint
Definition:
DtGlTextureBufferObject.h:17
makVrv::DtVariableRateShadingImagePaletteStateAttribute::myShadingRateImagePalette
osg::ref_ptr< DtVariableRateShadingImagePalette > myShadingRateImagePalette
Definition:
DtVariableRateShadingImagePalette.h:104
makVrv::DtVariableRateShadingImagePalette::myExt
VariableRateShadingExtensions * myExt
Definition:
DtVariableRateShadingImagePalette.h:58
makVrv::DtVariableRateShadingImagePalette
Wrap functionality of Nvidia Variable Rate Shading Image Palette Allocates shading rate pallete data ...
Definition:
DtVariableRateShadingImagePalette.h:23
makVrv::DtVariableRateShadingImagePaletteStateAttribute
An osg stateattribute that applies a DtVariableRateShadingImagePalette to the State.
Definition:
DtVariableRateShadingImagePalette.h:66
makVrv::VariableRateShadingExtensions
Extension functions used for Nvidia variable rate shading Initalises function pointers for the nvidia...
Definition:
DtVariableRateShadingImage.h:53
makVrv::DtDe
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition:
DtDe.h:70
makVrv::DtVariableRateShadingImagePalette::myShadingRatePaletteData
std::vector< GLenum > myShadingRatePaletteData
Definition:
DtVariableRateShadingImagePalette.h:61
DtVariableRateShadingImage.h
Wraps functionality of Variable Rate Shading Image.
int
Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (
www.mak.com
)