VR-Forces 4.10 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvPostProcessor
DtHdrBlurShaderGenerator.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2020 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
// This file is derived from the HDR NVIDIA gameworks SDK example
6
//----------------------------------------------------------------------------------
7
// File: es3aep-kepler\HDR/BlurShaderGenerator.h
8
// SDK Version: v2.11
9
// Email: gameworks@nvidia.com
10
// Site: http://developer.nvidia.com/
11
//
12
// Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.
13
//
14
// Redistribution and use in source and binary forms, with or without
15
// modification, are permitted provided that the following conditions
16
// are met:
17
// * Redistributions of source code must retain the above copyright
18
// notice, this list of conditions and the following disclaimer.
19
// * Redistributions in binary form must reproduce the above copyright
20
// notice, this list of conditions and the following disclaimer in the
21
// documentation and/or other materials provided with the distribution.
22
// * Neither the name of NVIDIA CORPORATION nor the names of its
23
// contributors may be used to endorse or promote products derived
24
// from this software without specific prior written permission.
25
//
26
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
27
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
30
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
31
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
32
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
33
// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
34
// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
35
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
36
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37
//
38
//----------------------------------------------------------------------------------
39
40
#pragma once
41
45
46
// Get proper local export symbol
47
#include <
vrvPostProcessor/vrvPostProcessor.h
>
48
49
#include <string>
50
51
namespace
makVrv
52
{
53
class
DtGlProgram;
54
55
class
DT_DLL_VRVPOSTPROCESSOR
DtBlurShaderGenerator
56
{
57
public
:
59
DtBlurShaderGenerator
();
61
virtual
~
DtBlurShaderGenerator
();
62
private
:
64
DtBlurShaderGenerator
(
const
DtBlurShaderGenerator
& rhs) =
delete
;
66
DtBlurShaderGenerator
& operator=(
const
DtBlurShaderGenerator
& rhs) =
delete
;
67
public
:
69
71
virtual
const
float
* generateGaussianWeightsAndWidth(
int
& width,
float
s);
72
74
virtual
const
float
* generateTriangleWeights(
int
width);
75
82
virtual
DtGlProgram
* generate1DConvolutionFilterComputeShader(
const
float
* weights,
int
width,
bool
vertical,
bool
tex2D,
int
imgWidth,
int
imgHeight
83
,
bool
isMultiview
84
,
const
std::string& preprocessorString
85
,
const
std::string& preAmble);
86
protected
:
88
virtual
void
deleteWeights(
void
);
89
90
protected
:
91
float
*
myWeights
;
92
93
};
94
}
makVrv::DtGlProgram
A convenience class to represent an OpenGL Shader Program.
Definition:
DtGlProgram.h:65
makVrv::DtBlurShaderGenerator::myWeights
float * myWeights
Definition:
DtHdrBlurShaderGenerator.h:91
makVrv::DtBlurShaderGenerator
Definition:
DtHdrBlurShaderGenerator.h:55
DT_DLL_VRVPOSTPROCESSOR
#define DT_DLL_VRVPOSTPROCESSOR
Definition:
vrvPostProcessor.h:19
vrvPostProcessor.h
Contains DLL export macros.
Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (
www.mak.com
)