neuray API Programmer's Manual

icanvas_cuda.h File Reference

Description

Abstract interface for CUDA canvases.

Code Example

icanvas_cuda.h

‎/***************************************************************************************************
 * Copyright 2024 NVIDIA Corporation. All rights reserved.
 **************************************************************************************************/

#ifndef MI_NEURAYLIB_ICANVAS_CUDA_H
#define MI_NEURAYLIB_ICANVAS_CUDA_H

#include <mi/neuraylib/icanvas.h>

namespace mi {

namespace neuraylib {






class ICanvas_cuda : public
    mi::base::Interface_declare<0x211963f4,0x31c1,0x4583,0x81,0x4b,0x5,0x24,0x69,0xa8,0xc,0x27,
                                neuraylib::ICanvas_base>
{
public:
    virtual Sint32 
               get_cuda_device_id() const = 0;

    virtual Uint32 
               get_resolution_x() const = 0;

    virtual Uint32 
               get_resolution_y() const = 0;

    virtual const void* get_data(Uint32 layer = 0) const = 0;

    virtual void* get_data(Uint32 layer = 0) = 0;
};
 // end group mi_neuray_rendering

} // namespace neuraylib

} // namespace mi

#endif // MI_NEURAYLIB_ICANVAS_CUDA_H

Namespaces

namespace 
Common namespace for APIs of NVIDIA Advanced Rendering Center GmbH. More...
namespace 
Namespace for the neuray API. More...

Classes

class 
Abstract interface for a canvas with CUDA device memory storage. More...