NVIDIA IndeX API nvidia_logo_transpbg.gif Up
xac_interface_sample_info_doc.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright 2023 NVIDIA Corporation. All rights reserved.
3 *****************************************************************************/
6
7namespace nv {
8namespace index {
9namespace xac {
10
11/* Sample Information Structs */
12
16{
18 float ray_t;
19
21 float3 ray_origin;
22
25
28};
29
33{
36};
37
41{
44
47};
48
52{
55};
56
60{
63
66
69
71 unsigned material_id;
72
74 unsigned colormap_id;
75};
76
80{
82 float transform_pipe_property_value(float value) const
83 {
85 };
86
88 const float* pipe_property_data;
89
92
95
97 float pipe_t;
98
101};
102
106{
109};
110
111/* Sample Output Structs */
112
116{
118 float4 color;
119
121 float depth;
122
124 void set_color(const float4& input_color)
125 {
126 color = input_color;
127 };
128
130 void set_depth(const float input_depth)
131 {
132 depth = input_depth;
133 };
134};
135
136} // namespace xac
137} // namespace index
138} // namespace nv
Common namespace for all NVIDIA APIs.
Definition: iindex.h:349
Sample information for height fields surfaces.
Definition: xac_interface_sample_info_doc.h:52
float2 texture_uv_coordinates
U,V space coordinates of the height field at the current sample position.
Definition: xac_interface_sample_info_doc.h:54
Sample information for pipe set scene element.
Definition: xac_interface_sample_info_doc.h:80
unsigned pipe_property_data_size
Number of entries in property array.
Definition: xac_interface_sample_info_doc.h:94
float pipe_t
Parameter position on the pipe (normalized to 0,1)
Definition: xac_interface_sample_info_doc.h:97
const float * pipe_property_data
Pointer to the data values associated to the given pipe set.
Definition: xac_interface_sample_info_doc.h:88
float transform_pipe_property_value(float value) const
Transform a given volume with respect to the given value range provided in pipe_property_value_transf...
Definition: xac_interface_sample_info_doc.h:82
float pipe_property_t
Position in the property array.
Definition: xac_interface_sample_info_doc.h:100
float2 pipe_property_value_transform
Translation (.x) and scale (.y) used to transform the data values.
Definition: xac_interface_sample_info_doc.h:91
Sample information for planes.
Definition: xac_interface_sample_info_doc.h:106
float2 texture_uv_coordinates
U,V space coordinates of the plane at the current sample position.
Definition: xac_interface_sample_info_doc.h:108
Sample information for surfaces.
Definition: xac_interface_sample_info_doc.h:41
float3 sample_normal
The direction of the surface normal at the current sample position.
Definition: xac_interface_sample_info_doc.h:43
float4 sample_color
Input sample color of the surface at the current sample position. Is set to (0, 0,...
Definition: xac_interface_sample_info_doc.h:46
Sample information for triangle mesh surfaces.
Definition: xac_interface_sample_info_doc.h:60
float4 texture_color
Interpolated texture color at the current sample position. Is set to (1, 1, 1, 1) when undefined.
Definition: xac_interface_sample_info_doc.h:68
unsigned colormap_id
Colormap Identifier of the material of the triangle at the current sample position....
Definition: xac_interface_sample_info_doc.h:74
float2 texture_coordinates
2D texture coordinates of the surface at the current sample position
Definition: xac_interface_sample_info_doc.h:62
unsigned material_id
Identifier of the material of the triangle at the current sample position. Is set to 0 when undefined...
Definition: xac_interface_sample_info_doc.h:71
float4 vertex_color
Interpolated vertex color at the current sample position. Is set to (1, 1, 1, 1) when undefined.
Definition: xac_interface_sample_info_doc.h:65
Sample information for volumes.
Definition: xac_interface_sample_info_doc.h:33
float3 sample_position
Position of the current sample point in sample space coordinates.
Definition: xac_interface_sample_info_doc.h:35
Generic ray sampling information.
Definition: xac_interface_sample_info_doc.h:16
float3 ray_origin
Ray source position in scene space coordinates.
Definition: xac_interface_sample_info_doc.h:21
float3 scene_position
Position of the current sample point in scene space coordinates.
Definition: xac_interface_sample_info_doc.h:27
float ray_t
The distance (or depth) of the current sample position along the view ray.
Definition: xac_interface_sample_info_doc.h:18
float3 ray_direction
Ray direction in scene space coordinates.
Definition: xac_interface_sample_info_doc.h:24
Generic sampling output structure.
Definition: xac_interface_sample_info_doc.h:116
void set_depth(const float input_depth)
Set the depth of the sampling program output.
Definition: xac_interface_sample_info_doc.h:130
float depth
The depth value that can be overwritten by the sampling program.
Definition: xac_interface_sample_info_doc.h:121
void set_color(const float4 &input_color)
Set the color of the sampling program output.
Definition: xac_interface_sample_info_doc.h:124
float4 color
The output color that can be overwritten by the sampling program.
Definition: xac_interface_sample_info_doc.h:118