Skip to content

Commit

Permalink
Comments for potential deprecation of StructuredBuffer::Apply and Str…
Browse files Browse the repository at this point in the history
…ucturedBuffer::ApplyAsUnorderedAccessView
  • Loading branch information
AndrewRichards-Code committed Sep 12, 2024
1 parent caf113d commit c564368
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CrossPlatform/PlatformStructuredBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ namespace platform
}
return platformStructuredBuffer->AsD3D11UnorderedAccessView();
}
//[[deprecated("Preferred usage is now RenderPlatform::SetStructuredBuffer.")]]
void Apply(crossplatform::DeviceContext& pContext, const crossplatform::ShaderResource& shaderResource)
{
if (!platformStructuredBuffer)
Expand All @@ -163,6 +164,7 @@ namespace platform
}
platformStructuredBuffer->Apply(pContext, shaderResource);
}
//[[deprecated("Preferred usage is now RenderPlatform::SetStructuredBuffer.")]]
void ApplyAsUnorderedAccessView(crossplatform::DeviceContext& pContext, const crossplatform::ShaderResource& shaderResource)
{
if (!platformStructuredBuffer)
Expand Down

0 comments on commit c564368

Please sign in to comment.