From c564368ac25f2b9d27d71919076fb845ca3b541a Mon Sep 17 00:00:00 2001 From: Andrew Richards Date: Thu, 12 Sep 2024 08:30:41 +0100 Subject: [PATCH] Comments for potential deprecation of StructuredBuffer::Apply and StructuredBuffer::ApplyAsUnorderedAccessView --- CrossPlatform/PlatformStructuredBuffer.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CrossPlatform/PlatformStructuredBuffer.h b/CrossPlatform/PlatformStructuredBuffer.h index 36307f84d..9cdca40b7 100644 --- a/CrossPlatform/PlatformStructuredBuffer.h +++ b/CrossPlatform/PlatformStructuredBuffer.h @@ -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) @@ -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)