NVIDIA IndeX API nvidia_logo_transpbg.gif Up
iapplication_depth_buffer.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright 2023 NVIDIA Corporation. All rights reserved.
3 *****************************************************************************/
6
7#ifndef NVIDIA_INDEX_IAPPLICATION_DEPTH_BUFFER_H
8#define NVIDIA_INDEX_IAPPLICATION_DEPTH_BUFFER_H
9
10#include <mi/base/interface_declare.h>
11#include <mi/math/vector.h>
12
13namespace nv
14{
15namespace index
16{
17
28 public mi::base::Interface_declare<0xc6efc2dd,0x0ef0,0x4e38,0x86,0x4d,0xca,0xd3,0x35,0x76,0xae,0x9a>
29{
30public:
34 virtual mi::math::Vector_struct<mi::Uint32, 2> get_resolution() const = 0;
35};
36
49 public mi::base::Interface_declare<0x4d85444e,0x79f6,0x4e36,0x91,0xa8,0xb0,0xf2,0xda,0x40,0xfe,0xc3,
50 nv::index::IApplication_depth_buffer>
51{
52public:
56 virtual mi::Uint32* get_z_buffer_ptr() = 0;
57
61 virtual mi::Uint32 get_z_buffer_precision() const = 0;
62};
63
70 public mi::base::Interface_declare<0x455960ae,0x8db9,0x4480,0x87,0x0c,0xe1,0xd3,0x70,0xef,0x73,0xed,
71 nv::index::IApplication_depth_buffer>
72{
73public:
77 virtual const mi::Float32* get_buffer() const = 0;
78
82 virtual mi::Float32 get_near_value() const = 0;
83
87 virtual mi::Float32 get_far_value() const = 0;
88
96 virtual bool get_flip_vertically() const = 0;
97
105 virtual mi::Uint32 get_row_pitch() const = 0;
106};
107
108} // namespace index
109} // namespace nv
110
111#endif // NVIDIA_INDEX_IAPPLICATION_DEPTH_BUFFER_H
Generic floating point depth buffer format provided by an application, enabling NVIDIA IndeX to do de...
Definition: iapplication_depth_buffer.h:72
virtual mi::Float32 get_far_value() const =0
Returns the depth value farthest from the camera (typically 1.0).
virtual mi::Uint32 get_row_pitch() const =0
Returns the row pitch of the depth buffer.
virtual const mi::Float32 * get_buffer() const =0
Returns the pointer of the depth buffer.
virtual mi::Float32 get_near_value() const =0
Returns the depth value closest to the camera (typically 0.0).
virtual bool get_flip_vertically() const =0
Returns whether buffer should be flipped vertically.
Depth buffer in OpenGL format provided by an application, enabling NVIDIA IndeX to do depth-correct c...
Definition: iapplication_depth_buffer.h:51
virtual mi::Uint32 get_z_buffer_precision() const =0
Returns the precision of the depth buffer values.
virtual mi::Uint32 * get_z_buffer_ptr()=0
Return a pointer to the the depth buffer.
Depth buffer provided by an application, enabling NVIDIA IndeX to do depth-correct compositing with a...
Definition: iapplication_depth_buffer.h:29
virtual mi::math::Vector_struct< mi::Uint32, 2 > get_resolution() const =0
Returns the resolution of the depth buffer.
Common namespace for all NVIDIA APIs.
Definition: iindex.h:349