This commit is contained in:
GiJungSUk
2025-12-06 22:25:07 +09:00
parent 119b30da41
commit a34c506f6a
74 changed files with 400 additions and 261 deletions
@@ -116,6 +116,13 @@ void CComputeShader::Bind_OutPut_SRV(_uint iIndex, _uint iBufferIndex)
}
void CComputeShader::Bind_OutPut_SRV_VS(_uint iIndex, _uint iBufferIndex)
{
m_pContext->VSSetShaderResources(iIndex, // 시작슬롯 번호
1, // 버퍼 개수
&m_pOutputSRV[iBufferIndex]); // 버퍼 시작 주
}
ID3D11UnorderedAccessView* CComputeShader::GetOutputUAV(_uint iIndex) const
{
return m_pOutputUAV[iIndex];
@@ -147,6 +154,8 @@ vector<D3D11_MAPPED_SUBRESOURCE> CComputeShader::ReadBackOutputs()
}
void CComputeShader::Reset()
{
//다음 랜더링 패스에 연관되지 않도록 초기화