Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
GrD3DResourceState Class Reference

#include <GrD3DResourceState.h>

Inheritance diagram for GrD3DResourceState:
SkRefCnt SkRefCntBase

Public Member Functions

 GrD3DResourceState (D3D12_RESOURCE_STATES state)
 
void setResourceState (D3D12_RESOURCE_STATES state)
 
D3D12_RESOURCE_STATES getResourceState () const
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 
virtual ~SkRefCntBase ()
 
bool unique () const
 
void ref () const
 
void unref () const
 

Detailed Description

Definition at line 14 of file GrD3DResourceState.h.

Constructor & Destructor Documentation

◆ GrD3DResourceState()

GrD3DResourceState::GrD3DResourceState ( D3D12_RESOURCE_STATES  state)
inline

Definition at line 16 of file GrD3DResourceState.h.

16: fState(state) {}
AtkStateType state

Member Function Documentation

◆ getResourceState()

D3D12_RESOURCE_STATES GrD3DResourceState::getResourceState ( ) const
inline

Definition at line 23 of file GrD3DResourceState.h.

23 {
24 // Defaulting to use std::memory_order_seq_cst
25 return fState.load();
26 }

◆ setResourceState()

void GrD3DResourceState::setResourceState ( D3D12_RESOURCE_STATES  state)
inline

Definition at line 18 of file GrD3DResourceState.h.

18 {
19 // Defaulting to use std::memory_order_seq_cst
20 fState.store(state);
21 }

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