Files
UnrealEngineUWP/Engine/Source/Programs/TextureShare/Samples/ThirdParty/TextureShare_ClientD3D11/TextureShareD3D11Helper.h
T
Marc Audy a7f9391231 Merge UE5/Release-Engine-Staging @ 14811410 to UE5/Main
This represents UE4/Main @ 14768117

For ReleaseObjectVersion.h
#lockdown Marcus.Wassmer

[CL 14811440 by Marc Audy in ue5-main branch]
2020-11-24 18:42:39 -04:00

24 lines
689 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include <tchar.h>
#include <string>
#include <d3d11.h>
#include "TextureShareInterface.h"
class FTextureShareD3D11Helper
{
public:
// Compare two textures size+format
static bool IsTexturesEqual(ID3D11Texture2D* Texture1, ID3D11Texture2D* Texture2);
// Create texture and create SRV
static bool CreateSRVTexture(ID3D11Device* pD3D11Device, ID3D11Texture2D* InSharedTexture, ID3D11Texture2D** OutTexture, ID3D11ShaderResourceView** OutShaderResourceView);
// Copy image between two textures
static bool CopyResource(ID3D11Device* pD3D11Device, ID3D11Resource* SourceTexture2D, ID3D11Resource* DestTexture2D);
};