JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
juce::DxgiAdapter Struct Reference

#include <juce_DirectX_windows.h>

Inheritance diagram for juce::DxgiAdapter:
Collaboration diagram for juce::DxgiAdapter:

Public Types

using Ptr = ReferenceCountedObjectPtr< DxgiAdapter >
 

Public Member Functions

void decReferenceCount () noexcept
 Decreases the object's reference count.
 
bool decReferenceCountWithoutDeleting () noexcept
 Decreases the object's reference count.
 
LUID getAdapterUniqueID () const
 
int getReferenceCount () const noexcept
 Returns the object's current reference count.
 
void incReferenceCount () noexcept
 Increments the object's reference count.
 
bool uniqueIDMatches (ReferenceCountedObjectPtr< DxgiAdapter > other) const
 

Static Public Member Functions

static Ptr create (ComSmartPtr< ID2D1Factory2 >, ComSmartPtr< IDXGIAdapter1 >)
 

Public Attributes

ComSmartPtr< ID2D1Device1 > direct2DDevice
 
ComSmartPtr< ID3D11Device > direct3DDevice
 
ComSmartPtr< IDXGIAdapter1 > dxgiAdapter
 
ComSmartPtr< IDXGIDevice > dxgiDevice
 
std::vector< ComSmartPtr< IDXGIOutput > > dxgiOutputs
 

Protected Member Functions

void resetReferenceCount () noexcept
 Resets the reference count to zero without deleting the object.
 

Private Member Functions

 DxgiAdapter ()=default
 

Private Attributes

Atomic< int > refCount { 0 }
 

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ DxgiAdapter()

juce::DxgiAdapter::DxgiAdapter ( )
privatedefault

Member Function Documentation

◆ create()

static Ptr juce::DxgiAdapter::create ( ComSmartPtr< ID2D1Factory2 >  ,
ComSmartPtr< IDXGIAdapter1 >   
)
static

◆ decReferenceCount()

void juce::ReferenceCountedObject::decReferenceCount ( )
inlinenoexceptinherited

Decreases the object's reference count.

If the count gets to zero, the object will be deleted.

References jassert.

◆ decReferenceCountWithoutDeleting()

bool juce::ReferenceCountedObject::decReferenceCountWithoutDeleting ( )
inlinenoexceptinherited

Decreases the object's reference count.

If the count gets to zero, the object will not be deleted, but this method will return true, allowing the caller to take care of deletion.

References jassert.

◆ getAdapterUniqueID()

LUID juce::DxgiAdapter::getAdapterUniqueID ( ) const

◆ getReferenceCount()

int juce::ReferenceCountedObject::getReferenceCount ( ) const
inlinenoexceptinherited

Returns the object's current reference count.

◆ incReferenceCount()

void juce::ReferenceCountedObject::incReferenceCount ( )
inlinenoexceptinherited

Increments the object's reference count.

This is done automatically by the smart pointer, but is public just in case it's needed for nefarious purposes.

◆ resetReferenceCount()

void juce::ReferenceCountedObject::resetReferenceCount ( )
inlineprotectednoexceptinherited

Resets the reference count to zero without deleting the object.

You should probably never need to use this!

◆ uniqueIDMatches()

bool juce::DxgiAdapter::uniqueIDMatches ( ReferenceCountedObjectPtr< DxgiAdapter other) const

Member Data Documentation

◆ direct2DDevice

ComSmartPtr<ID2D1Device1> juce::DxgiAdapter::direct2DDevice

◆ direct3DDevice

ComSmartPtr<ID3D11Device> juce::DxgiAdapter::direct3DDevice

◆ dxgiAdapter

ComSmartPtr<IDXGIAdapter1> juce::DxgiAdapter::dxgiAdapter

◆ dxgiDevice

ComSmartPtr<IDXGIDevice> juce::DxgiAdapter::dxgiDevice

◆ dxgiOutputs

std::vector<ComSmartPtr<IDXGIOutput> > juce::DxgiAdapter::dxgiOutputs

◆ refCount

Atomic<int> juce::ReferenceCountedObject::refCount { 0 }
privateinherited

The documentation for this struct was generated from the following file: