Sunshine v2025.118.151840
Self-hosted game stream host for Moonlight.
nvenc_d3d11_native.h
Go to the documentation of this file.
1
5#pragma once
6#ifdef _WIN32
7
8 #include <comdef.h>
9 #include <d3d11.h>
10
11 #include "nvenc_d3d11.h"
12
13namespace nvenc {
14
18 class nvenc_d3d11_native final: public nvenc_d3d11 {
19 public:
23 explicit nvenc_d3d11_native(ID3D11Device *d3d_device);
25
26 ID3D11Texture2D *
27 get_input_texture() override;
28
29 private:
30 bool
31 create_and_register_input_buffer() override;
32
33 const ID3D11DevicePtr d3d_device;
34 ID3D11Texture2DPtr d3d_input_texture;
35 };
36
37} // namespace nvenc
38#endif
Native Direct3D11 NVENC encoder.
Definition nvenc_d3d11_native.h:18
ID3D11Texture2D * get_input_texture() override
Get input surface texture.
Definition nvenc_d3d11_native.cpp:23
nvenc_d3d11_native(ID3D11Device *d3d_device)
Definition nvenc_d3d11_native.cpp:12
Abstract Direct3D11 NVENC encoder. Encapsulates common code used by native and interop implementation...
Definition nvenc_d3d11.h:24
Standalone NVENC encoder.
Definition nvenc_base.cpp:86
Declarations for abstract Direct3D11 NVENC encoder.