Sunshine
latest
Self-hosted game stream host for Moonlight.
Toggle main menu visibility
nvenc_d3d11_native.h
Go to the documentation of this file.
1
5
#pragma once
6
#ifdef _WIN32
7
// standard includes
8
#include <comdef.h>
9
#include <d3d11.h>
10
11
// local includes
12
#include "
nvenc_d3d11.h
"
13
14
namespace
NVENC_NAMESPACE
{
15
19
class
nvenc_d3d11_native
final:
public
nvenc_d3d11
{
20
public
:
25
explicit
nvenc_d3d11_native
(ID3D11Device *d3d_device,
::nvenc::shared_dll
dll);
26
~nvenc_d3d11_native
()
override
;
27
28
ID3D11Texture2D *
get_input_texture
()
override
;
29
30
private
:
31
bool
create_and_register_input_buffer()
override
;
32
33
const
ID3D11DevicePtr
d3d_device;
34
ID3D11Texture2DPtr
d3d_input_texture;
35
};
36
37
}
// namespace NVENC_NAMESPACE
38
#endif
nvenc::nvenc_d3d11_native::get_input_texture
ID3D11Texture2D * get_input_texture() override
Get input surface texture.
Definition
nvenc_d3d11_native.cpp:27
nvenc::nvenc_d3d11_native::nvenc_d3d11_native
nvenc_d3d11_native(ID3D11Device *d3d_device, ::nvenc::shared_dll dll)
Definition
nvenc_d3d11_native.cpp:14
nvenc::nvenc_d3d11::nvenc_d3d11
nvenc_d3d11(NV_ENC_DEVICE_TYPE device_type, ::nvenc::shared_dll dll)
Initialize an NVENC session wrapper for D3D11 input textures.
Definition
nvenc_d3d11.cpp:13
nvenc::ID3D11Texture2DPtr
ID3D11Texture2D * ID3D11Texture2DPtr
COM smart pointer for ID3D11Texture2D.
Definition
nvenc_d3d11.h:27
nvenc::shared_dll
std::shared_ptr< std::remove_pointer_t< HMODULE > > shared_dll
Shared ownership wrapper for a loaded Windows module.
Definition
nvenc_shared_dll.h:20
nvenc::ID3D11DevicePtr
ID3D11Device * ID3D11DevicePtr
COM smart pointer for ID3D11Device.
Definition
nvenc_d3d11.h:23
nvenc_d3d11.h
Declarations for abstract Direct3D11 NVENC encoder.
NVENC_NAMESPACE
#define NVENC_NAMESPACE
Namespace used for the documented NVENC implementation.
Definition
nvenc_sdk.h:12
src
nvenc
nvenc_d3d11_native.h
Generated by
1.18.0