ReShade
A generic post-processing injector for games and video software.
Public Member Functions | List of all members
reshade::api::device_object Struct Referenceabstract

The base class for objects that are children to a logical render device. More...

#include <reshade_api_device.hpp>

Inheritance diagram for reshade::api::device_object:
reshade::api::api_object reshade::api::command_list reshade::api::command_queue reshade::api::effect_runtime reshade::api::swapchain

Public Member Functions

virtual deviceget_device ()=0
 Gets the parent device for this object. More...
 
- Public Member Functions inherited from reshade::api::api_object
virtual uint64_t get_native () const =0
 Gets the underlying native object for this API object. More...
 
virtual void get_private_data (const uint8_t guid[16], uint64_t *data) const =0
 Gets a user-defined 64-bit value from the object that was previously set via set_private_data, or zero if none associated with the specified guid exists. More...
 
virtual void set_private_data (const uint8_t guid[16], const uint64_t data)=0
 Stores a user-defined 64-bit value in the object and associates it with the specified guid . More...
 
template<typename T >
T & get_private_data () const
 Gets a reference to user-defined data from the object that was previously allocated via create_private_data. More...
 
template<typename T , typename... Args>
T & create_private_data (Args &&... args)
 Allocates user-defined data and stores it in the object. More...
 
template<typename T >
void destroy_private_data ()
 Frees user-defined data that was previously allocated via create_private_data. More...
 

Detailed Description

The base class for objects that are children to a logical render device.

Member Function Documentation

◆ get_device()

virtual device* reshade::api::device_object::get_device ( )
pure virtual

Gets the parent device for this object.


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