Function ComPtr

Summary

#include <Source/Falcor/Core/API/Shader.h>

(1) ComPtr()

(2) ComPtr(nullptr_t)

(3) explicit ComPtr(T *pObject)

(4) ComPtr(const ThisType &rhs)

(5) ComPtr(ThisType &&rhs)

Function overload

Synopsis

#include <Source/Falcor/Core/API/Shader.h>

ComPtr()

Description

Initialize to a null pointer.

Source

Lines 46-46 in Source/Falcor/Core/API/Shader.h.

ComPtr() : mpObject(nullptr) {}

Synopsis

#include <Source/Falcor/Core/API/Shader.h>

ComPtr(nullptr_t)

Description

No description yet.

Source

Lines 47-47 in Source/Falcor/Core/API/Shader.h.

ComPtr(nullptr_t) : mpObject(nullptr) {}

Synopsis

#include <Source/Falcor/Core/API/Shader.h>

explicit ComPtr(T *pObject)

Description

Add a new reference to an existing object.

Source

Lines 53-53 in Source/Falcor/Core/API/Shader.h.

explicit ComPtr(T* pObject) : mpObject(pObject) { if (pObject) (pObject)->AddRef(); }

Synopsis

#include <Source/Falcor/Core/API/Shader.h>

ComPtr(const ThisType &rhs)

Description

Add a new reference to an existing object.

Source

Lines 56-56 in Source/Falcor/Core/API/Shader.h.

ComPtr(const ThisType& rhs) : mpObject(rhs.mpObject) { if (mpObject) (mpObject)->AddRef(); }

Synopsis

#include <Source/Falcor/Core/API/Shader.h>

ComPtr(ThisType &&rhs)

Description

Transfer ownership of a reference.

Source

Lines 77-77 in Source/Falcor/Core/API/Shader.h.

ComPtr(ThisType&& rhs) : mpObject(rhs.mpObject) { rhs.mpObject = nullptr; }





Add Discussion as Guest

Log in to DocsForge