mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-11 15:33:34 +00:00
working on software backend
This commit is contained in:
@@ -9,10 +9,24 @@
|
||||
|
||||
PulseComputePass SoftCreateComputePass(PulseDevice device, PulseCommandList cmd)
|
||||
{
|
||||
PULSE_UNUSED(device);
|
||||
PulseComputePass pass = (PulseComputePass)calloc(1, sizeof(PulseComputePassHandler));
|
||||
PULSE_CHECK_ALLOCATION_RETVAL(pass, PULSE_NULL_HANDLE);
|
||||
|
||||
SoftComputePass* soft_pass = (SoftComputePass*)calloc(1, sizeof(SoftComputePass));
|
||||
PULSE_CHECK_ALLOCATION_RETVAL(soft_pass, PULSE_NULL_HANDLE);
|
||||
|
||||
pass->cmd = cmd;
|
||||
pass->driver_data = soft_pass;
|
||||
|
||||
return pass;
|
||||
}
|
||||
|
||||
void SoftDestroyComputePass(PulseDevice device, PulseComputePass pass)
|
||||
{
|
||||
PULSE_UNUSED(device);
|
||||
free(pass->driver_data);
|
||||
free(pass);
|
||||
}
|
||||
|
||||
PulseComputePass SoftBeginComputePass(PulseCommandList cmd)
|
||||
|
||||
Reference in New Issue
Block a user