mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-04-28 21:37:58 +03:00
Improve Compatibility
This commit is contained in:
parent
e4c43ae3b1
commit
8b814d1c92
4 changed files with 15 additions and 3 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -3,6 +3,10 @@
|
|||
##
|
||||
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
|
||||
|
||||
# Jetbrains Project Files
|
||||
.idea/
|
||||
cmake*
|
||||
|
||||
# User-specific files
|
||||
*.rsuser
|
||||
*.suo
|
||||
|
|
|
@ -198,7 +198,10 @@ static bool FontBuilder_Build(ImFontAtlas* atlas)
|
|||
glyph.edgeColoring(&msdfgen::edgeColoringByDistance, 3.0, 0);
|
||||
|
||||
for (auto &customRect : atlas->CustomRects)
|
||||
customRects.emplace_back(0, 0, int(customRect.Width), int(customRect.Height));
|
||||
customRects.push_back(
|
||||
msdf_atlas::Rectangle{0, 0,
|
||||
int(customRect.Width),
|
||||
int(customRect.Height)});
|
||||
|
||||
TightAtlasPacker packer;
|
||||
packer.spacing = 1;
|
||||
|
|
|
@ -428,7 +428,7 @@ static void EnqueuePipelineTask(PipelineTaskType type, const boost::shared_ptr<H
|
|||
|
||||
{
|
||||
std::lock_guard lock(g_pipelineTaskMutex);
|
||||
g_pipelineTaskQueue.emplace_back(type, databaseData);
|
||||
g_pipelineTaskQueue.push_back(PipelineTask{type, databaseData});
|
||||
}
|
||||
|
||||
if ((++g_pendingPipelineTaskCount) == 1)
|
||||
|
|
|
@ -153,6 +153,7 @@ struct GuestBaseTexture : GuestResource
|
|||
// Texture/VolumeTexture
|
||||
struct GuestTexture : GuestBaseTexture
|
||||
{
|
||||
using GuestBaseTexture::GuestBaseTexture;
|
||||
uint32_t depth = 0;
|
||||
RenderTextureViewDimension viewDimension = RenderTextureViewDimension::UNKNOWN;
|
||||
void* mappedMemory = nullptr;
|
||||
|
@ -181,6 +182,7 @@ struct GuestBufferDesc
|
|||
// VertexBuffer/IndexBuffer
|
||||
struct GuestBuffer : GuestResource
|
||||
{
|
||||
using GuestResource::GuestResource;
|
||||
std::unique_ptr<RenderBuffer> buffer;
|
||||
void* mappedMemory = nullptr;
|
||||
uint32_t dataSize = 0;
|
||||
|
@ -204,6 +206,7 @@ struct GuestSurfaceDesc
|
|||
// RenderTarget/DepthStencil
|
||||
struct GuestSurface : GuestBaseTexture
|
||||
{
|
||||
using GuestBaseTexture::GuestBaseTexture;
|
||||
uint32_t guestFormat = 0;
|
||||
ankerl::unordered_dense::map<const RenderTexture*, std::unique_ptr<RenderFramebuffer>> framebuffers;
|
||||
RenderSampleCounts sampleCount = RenderSampleCount::COUNT_1;
|
||||
|
@ -270,6 +273,7 @@ struct GuestVertexElement
|
|||
|
||||
struct GuestVertexDeclaration : GuestResource
|
||||
{
|
||||
using GuestResource::GuestResource;
|
||||
XXH64_hash_t hash = 0;
|
||||
std::unique_ptr<RenderInputElement[]> inputElements;
|
||||
std::unique_ptr<GuestVertexElement[]> vertexElements;
|
||||
|
@ -284,6 +288,7 @@ struct GuestVertexDeclaration : GuestResource
|
|||
// VertexShader/PixelShader
|
||||
struct GuestShader : GuestResource
|
||||
{
|
||||
using GuestResource::GuestResource;
|
||||
Mutex mutex;
|
||||
std::unique_ptr<RenderShader> shader;
|
||||
struct ShaderCacheEntry* shaderCacheEntry = nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue