DiCE API nvidia_logo_transpbg.gif Up
icanvas_cuda.h
Go to the documentation of this file.
1/***************************************************************************************************
2 * Copyright 2023 NVIDIA Corporation. All rights reserved.
3 **************************************************************************************************/
6
7#ifndef MI_NEURAYLIB_ICANVAS_CUDA_H
8#define MI_NEURAYLIB_ICANVAS_CUDA_H
9
11
12namespace mi {
13
14namespace neuraylib {
15
25class ICanvas_cuda : public
26 mi::base::Interface_declare<0x211963f4,0x31c1,0x4583,0x81,0x4b,0x5,0x24,0x69,0xa8,0xc,0x27,
27 neuraylib::ICanvas_base>
28{
29public:
31 virtual Sint32 get_cuda_device_id() const = 0;
32
34 virtual Uint32 get_resolution_x() const = 0;
35
37 virtual Uint32 get_resolution_y() const = 0;
38
53 virtual const void* get_data(Uint32 layer = 0) const = 0;
54
69 virtual void* get_data(Uint32 layer = 0) = 0;
70};
71 // end group mi_neuray_rendering
73
74} // namespace neuraylib
75
76} // namespace mi
77
78#endif // MI_NEURAYLIB_ICANVAS_CUDA_H
Mixin class template for deriving new interface declarations.
Definition: interface_declare.h:43
Abstract interface for a canvas with CUDA device memory storage.
Definition: icanvas_cuda.h:28
virtual const void * get_data(Uint32 layer=0) const =0
Returns a pointer to the raw pixel data according to the pixel type of the canvas.
virtual Uint32 get_resolution_x() const =0
Returns the number of pixels in x direction.
virtual void * get_data(Uint32 layer=0)=0
Returns a pointer to the raw pixel data according to the pixel type of the canvas.
virtual Sint32 get_cuda_device_id() const =0
Returns the CUDA device id that owns the device memory storage for this canvas.
virtual Uint32 get_resolution_y() const =0
Returns the number of pixels in y direction.
unsigned int Uint32
32-bit unsigned integer.
Definition: types.h:49
signed int Sint32
32-bit signed integer.
Definition: types.h:46
Abstract interface for canvases.
Common namespace for APIs of NVIDIA Advanced Rendering Center GmbH.
Definition: dice.h:89