VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
13 
14 namespace makVrv
15 {
16 
23  class DT_DLL_VRVOSG DtVariableRateShadingImagePalette : public osg::Referenced
24  {
25  private:
28 
31 
32  public:
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:
54 
55  protected:
57 
59 
61  std::vector<GLenum> myShadingRatePaletteData;
62  };
63 
67  {
68  public:
69 
71  static const osg::StateAttribute::Type DtVariableRateShadingImagePaletteStateAttributeType = (osg::StateAttribute::Type)3001;
72 
75 
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 
105  };
106 }
GLint myShadingRateImagePaletteSize
Definition: DtVariableRateShadingImagePalette.h:60
DtDe & myDe
Definition: DtVariableRateShadingImagePalette.h:56
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Definition: featureContext.h:37
unsigned int GLuint
Definition: DtGlTextureBufferObject.h:17
osg::ref_ptr< DtVariableRateShadingImagePalette > myShadingRateImagePalette
Definition: DtVariableRateShadingImagePalette.h:104
VariableRateShadingExtensions * myExt
Definition: DtVariableRateShadingImagePalette.h:58
Wrap functionality of Nvidia Variable Rate Shading Image Palette Allocates shading rate pallete data ...
Definition: DtVariableRateShadingImagePalette.h:23
An osg stateattribute that applies a DtVariableRateShadingImagePalette to the State.
Definition: DtVariableRateShadingImagePalette.h:66
Extension functions used for Nvidia variable rate shading Initalises function pointers for the nvidia...
Definition: DtVariableRateShadingImage.h:53
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
std::vector< GLenum > myShadingRatePaletteData
Definition: DtVariableRateShadingImagePalette.h:61
Wraps functionality of Variable Rate Shading Image.

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)