The CreateStaticBuffer helper is designed to create a DEFAULT resource and initialize it with data uploaded via a ResourceUploadBatch.
This PR adds CreateUploadBuffer which creates an UPLOAD resource and initializes it via a direct Map/Unmap cycle since it's CPU accessible. If you pass a nullptr for the data, it just creates the UPLOAD resource.
This also adds CreateUAVBuffer which is just a simple way to create a UAV resource since that's common for DXR and DirectCompute scenarios.
The
CreateStaticBuffer
helper is designed to create a DEFAULT resource and initialize it with data uploaded via a ResourceUploadBatch.This PR adds
CreateUploadBuffer
which creates an UPLOAD resource and initializes it via a direct Map/Unmap cycle since it's CPU accessible. If you pass anullptr
for the data, it just creates the UPLOAD resource.This also adds
CreateUAVBuffer
which is just a simple way to create a UAV resource since that's common for DXR and DirectCompute scenarios.