[Vulkan] Immediate drawer textures
This commit is contained in:
@@ -439,7 +439,7 @@ bool D3D12Provider::Initialize() {
|
||||
return true;
|
||||
}
|
||||
|
||||
std::unique_ptr<GraphicsContext> D3D12Provider::CreateContext(
|
||||
std::unique_ptr<GraphicsContext> D3D12Provider::CreateHostContext(
|
||||
Window* target_window) {
|
||||
auto new_context =
|
||||
std::unique_ptr<D3D12Context>(new D3D12Context(this, target_window));
|
||||
@@ -449,7 +449,7 @@ std::unique_ptr<GraphicsContext> D3D12Provider::CreateContext(
|
||||
return std::unique_ptr<GraphicsContext>(new_context.release());
|
||||
}
|
||||
|
||||
std::unique_ptr<GraphicsContext> D3D12Provider::CreateOffscreenContext() {
|
||||
std::unique_ptr<GraphicsContext> D3D12Provider::CreateEmulationContext() {
|
||||
auto new_context =
|
||||
std::unique_ptr<D3D12Context>(new D3D12Context(this, nullptr));
|
||||
if (!new_context->Initialize()) {
|
||||
|
||||
@@ -27,9 +27,9 @@ class D3D12Provider : public GraphicsProvider {
|
||||
|
||||
static std::unique_ptr<D3D12Provider> Create(Window* main_window);
|
||||
|
||||
std::unique_ptr<GraphicsContext> CreateContext(
|
||||
std::unique_ptr<GraphicsContext> CreateHostContext(
|
||||
Window* target_window) override;
|
||||
std::unique_ptr<GraphicsContext> CreateOffscreenContext() override;
|
||||
std::unique_ptr<GraphicsContext> CreateEmulationContext() override;
|
||||
|
||||
IDXGIFactory2* GetDXGIFactory() const { return dxgi_factory_; }
|
||||
// nullptr if PIX not attached.
|
||||
|
||||
Reference in New Issue
Block a user