Iray SDK API nvidia_logo_transpbg.gif Up
render_target_traits.h
Go to the documentation of this file.
1/***************************************************************************************************
2 * Copyright 2024 NVIDIA Corporation. All rights reserved.
3 **************************************************************************************************/
6
7#ifndef MI_NEURAYLIB_RENDER_TARGET_TRAITS_H
8#define MI_NEURAYLIB_RENDER_TARGET_TRAITS_H
9
13
15
16namespace mi {
17namespace neuraylib {
18
20template <Canvas_parameter> struct Canvas_parameter_type_t {};
21template <Canvas_parameter P> using Canvas_parameter_type
23
24template <> struct Canvas_parameter_type_t<PARAM_COLOR_LPE> { using Type = IString; };
25template <> struct Canvas_parameter_type_t<PARAM_ALPHA_LPE> { using Type = IString; };
26template <> struct Canvas_parameter_type_t<PARAM_INDEX> { using Type = ISint32; };
27template <> struct Canvas_parameter_type_t<PARAM_EDGE_COLOR> { using Type = IFloat32_4; };
28template <> struct Canvas_parameter_type_t<PARAM_EDGE_COLOR_2> { using Type = IFloat32_4; };
29template <> struct Canvas_parameter_type_t<PARAM_SHADE_COLOR> { using Type = IFloat32_4; };
30template <> struct Canvas_parameter_type_t<PARAM_SCALE> { using Type = IFloat32; };
31template <> struct Canvas_parameter_type_t<PARAM_BIAS> { using Type = IFloat32_2; };
32template <> struct Canvas_parameter_type_t<PARAM_PROCESSING_DISABLED> { using Type = IBoolean; };
33template <> struct Canvas_parameter_type_t<PARAM_SELECTION_SUBSET> { using Type = IBoolean; };
34template <> struct Canvas_parameter_type_t<PARAM_MULTI_INDEX> { using Type = ISint32_4; };
35
36}}
37
38#endif
A simple string class.
Definition: istring.h:22
@ PARAM_EDGE_COLOR_2
IFloat32_4 secondary edge color.
Definition: irender_target.h:75
@ PARAM_MULTI_INDEX
ISint32_4 multidimensional index.
Definition: irender_target.h:92
@ PARAM_PROCESSING_DISABLED
Disables all processing for the canvas.
Definition: irender_target.h:78
@ PARAM_SELECTION_SUBSET
internal use only
Definition: irender_target.h:93
@ PARAM_INDEX
ISint32 channel index or canvas index.
Definition: irender_target.h:73
@ PARAM_COLOR_LPE
IString color LPE.
Definition: irender_target.h:71
@ PARAM_EDGE_COLOR
IFloat32_4 edge color.
Definition: irender_target.h:74
@ PARAM_BIAS
IFloat32_2 bias, meaning depends on type of canvas.
Definition: irender_target.h:94
@ PARAM_ALPHA_LPE
IString alpha channel LPE.
Definition: irender_target.h:72
@ PARAM_SHADE_COLOR
IFloat32_4 shading color.
Definition: irender_target.h:76
@ PARAM_SCALE
IFloat32 scale, meaning depends on type of canvas.
Definition: irender_target.h:77
Numeric types.
Abstract interface for render targets.
String type.
Vector types.
Common namespace for APIs of NVIDIA Advanced Rendering Center GmbH.
Definition: neuraylib.h:179
Types of canvas parameters.
Definition: render_target_traits.h:20