Skip to content

Commit

Permalink
Update Vortice.D3D11 (veldrid#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
smoogipoo authored Mar 25, 2023
1 parent 02acb28 commit 367f3ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<PropertyGroup>
<VeldridSpirvVersion>1.0.14</VeldridSpirvVersion>
<NativeLibraryLoaderVersion>1.0.13</NativeLibraryLoaderVersion>
<VorticeWindowsVersion>2.3.0</VorticeWindowsVersion>
<VorticeWindowsVersion>2.4.2</VorticeWindowsVersion>
</PropertyGroup>

<PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Veldrid/D3D11/D3D11ResourceCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private ID3D11BlendState CreateNewBlendState(ref BlendStateDescription descripti
for (int i = 0; i < attachmentStates.Length; i++)
{
BlendAttachmentDescription state = attachmentStates[i];
d3dBlendStateDesc.RenderTarget[i].IsBlendEnabled = state.BlendEnabled;
d3dBlendStateDesc.RenderTarget[i].BlendEnable = state.BlendEnabled;
d3dBlendStateDesc.RenderTarget[i].RenderTargetWriteMask = D3D11Formats.VdToD3D11ColorWriteEnable(state.ColorWriteMask.GetOrDefault());
d3dBlendStateDesc.RenderTarget[i].SourceBlend = D3D11Formats.VdToD3D11Blend(state.SourceColorFactor);
d3dBlendStateDesc.RenderTarget[i].DestinationBlend = D3D11Formats.VdToD3D11Blend(state.DestinationColorFactor);
Expand Down
2 changes: 1 addition & 1 deletion src/Veldrid/D3D11/D3D11Sampler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public D3D11Sampler(ID3D11Device device, ref SamplerDescription description)
MinLOD = description.MinimumLod,
MaxLOD = description.MaximumLod,
MaxAnisotropy = (int)description.MaximumAnisotropy,
ComparisonFunction = comparision,
ComparisonFunc = comparision,
MipLODBias = description.LodBias,
BorderColor = ToRawColor4(description.BorderColor)
};
Expand Down

0 comments on commit 367f3ec

Please sign in to comment.