summaryrefslogtreecommitdiff
path: root/tools/gfx/d3d12/d3d12-submitter.cpp
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2024-10-29 14:49:26 +0800
committerGitHub <noreply@github.com>2024-10-29 14:49:26 +0800
commitf65d756bff8d4c5cbc15bd0322a2ae8e6b896a21 (patch)
treeea1d61342cd29368e19135000ec2948813096205 /tools/gfx/d3d12/d3d12-submitter.cpp
parenta729c15e9dce9f5116a38afc66329ab2ca4cea54 (diff)
format
* format * Minor test fixes * enable checking cpp format in ci
Diffstat (limited to 'tools/gfx/d3d12/d3d12-submitter.cpp')
-rw-r--r--tools/gfx/d3d12/d3d12-submitter.cpp22
1 files changed, 15 insertions, 7 deletions
diff --git a/tools/gfx/d3d12/d3d12-submitter.cpp b/tools/gfx/d3d12/d3d12-submitter.cpp
index 0abd21d70..2870d8836 100644
--- a/tools/gfx/d3d12/d3d12-submitter.cpp
+++ b/tools/gfx/d3d12/d3d12-submitter.cpp
@@ -11,7 +11,8 @@ namespace d3d12
using namespace Slang;
void GraphicsSubmitter::setRootConstantBufferView(
- int index, D3D12_GPU_VIRTUAL_ADDRESS gpuBufferLocation)
+ int index,
+ D3D12_GPU_VIRTUAL_ADDRESS gpuBufferLocation)
{
m_commandList->SetGraphicsRootConstantBufferView(index, gpuBufferLocation);
}
@@ -27,7 +28,8 @@ void GraphicsSubmitter::setRootSRV(int index, D3D12_GPU_VIRTUAL_ADDRESS gpuBuffe
}
void GraphicsSubmitter::setRootDescriptorTable(
- int index, D3D12_GPU_DESCRIPTOR_HANDLE baseDescriptor)
+ int index,
+ D3D12_GPU_DESCRIPTOR_HANDLE baseDescriptor)
{
m_commandList->SetGraphicsRootDescriptorTable(index, baseDescriptor);
}
@@ -44,7 +46,10 @@ void GraphicsSubmitter::setRootConstants(
void const* srcData)
{
m_commandList->SetGraphicsRoot32BitConstants(
- UINT(rootParamIndex), UINT(countOf32BitValues), srcData, UINT(dstOffsetIn32BitValues));
+ UINT(rootParamIndex),
+ UINT(countOf32BitValues),
+ srcData,
+ UINT(dstOffsetIn32BitValues));
}
void GraphicsSubmitter::setPipelineState(PipelineStateBase* pipeline)
@@ -54,7 +59,8 @@ void GraphicsSubmitter::setPipelineState(PipelineStateBase* pipeline)
}
void ComputeSubmitter::setRootConstantBufferView(
- int index, D3D12_GPU_VIRTUAL_ADDRESS gpuBufferLocation)
+ int index,
+ D3D12_GPU_VIRTUAL_ADDRESS gpuBufferLocation)
{
m_commandList->SetComputeRootConstantBufferView(index, gpuBufferLocation);
}
@@ -69,8 +75,7 @@ void ComputeSubmitter::setRootSRV(int index, D3D12_GPU_VIRTUAL_ADDRESS gpuBuffer
m_commandList->SetComputeRootShaderResourceView(index, gpuBufferLocation);
}
-void ComputeSubmitter::setRootDescriptorTable(
- int index, D3D12_GPU_DESCRIPTOR_HANDLE baseDescriptor)
+void ComputeSubmitter::setRootDescriptorTable(int index, D3D12_GPU_DESCRIPTOR_HANDLE baseDescriptor)
{
m_commandList->SetComputeRootDescriptorTable(index, baseDescriptor);
}
@@ -87,7 +92,10 @@ void ComputeSubmitter::setRootConstants(
void const* srcData)
{
m_commandList->SetComputeRoot32BitConstants(
- UINT(rootParamIndex), UINT(countOf32BitValues), srcData, UINT(dstOffsetIn32BitValues));
+ UINT(rootParamIndex),
+ UINT(countOf32BitValues),
+ srcData,
+ UINT(dstOffsetIn32BitValues));
}
void ComputeSubmitter::setPipelineState(PipelineStateBase* pipeline)