Skip to content

Commit

Permalink
[D3D12] Build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PanosK92 committed Oct 24, 2023
1 parent c812d4e commit b5fe8d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions data/shaders/light_composition.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ float compute_fade_factor(float2 uv)

float3 refract_vector(float3 i, float3 n, float eta)
{
float cosi = dot(-i, n);
float cosi = dot(-i, n);
float cost2 = 1.0f - eta * eta * (1.0f - cosi * cosi);
return eta * i + (eta * cosi - sqrt(abs(cost2))) * n;
}
Expand Down Expand Up @@ -126,4 +126,3 @@ void mainCS(uint3 thread_id : SV_DispatchThreadID)

tex_uav[thread_id.xy] = saturate_16(color);
}

5 changes: 3 additions & 2 deletions runtime/RHI/D3D12/D3D12_AMD_FidelityFX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ namespace Spartan

}

void RHI_AMD_FidelityFX::FSR2_Resize(const Math::Vector2& resolution_render, const Math::Vector2& resolution_output)
void RHI_AMD_FidelityFX::FSR2_Resize(const Vector2& resolution_render, const Vector2& resolution_output)
{

}
Expand All @@ -69,7 +69,8 @@ namespace Spartan
RHI_Texture* tex_output,
Camera* camera,
float delta_time_sec,
float sharpness
float sharpness,
float exposure
)
{

Expand Down

0 comments on commit b5fe8d9

Please sign in to comment.