Hello -
I was hopeful someone could help me with a few ideas for troubleshooting a test program I am writing to try out encoding compute dispatch commands on the gpu using an indirect command buffer. My simple set up is described below. Please advise if more information would be helpful. The problem I find myself with is that commands are not being encoded into the icb.
Kernel: A simple function that accepts three parameters:
I did confirm that I am calling useResource:options: on the icb in the render loop.
Thoughts on how I should trouble shoot?
Thanks,
I was hopeful someone could help me with a few ideas for troubleshooting a test program I am writing to try out encoding compute dispatch commands on the gpu using an indirect command buffer. My simple set up is described below. Please advise if more information would be helpful. The problem I find myself with is that commands are not being encoded into the icb.
Kernel: A simple function that accepts three parameters:
A buffer that holds the icb
A buffer that holds the compute pipeline state for another kernel function
A camera uniforms buffer that consists of a view and projection matrix
compute_command cmd(bufferA->icb, thread_id);
cmd.set_compute_pipeline_state(bufferB->pipeline);
cmd.set_kernel_buffer(uniforms, 1);
cmd.concurrent_dispatch_threads(threads, threadsPerThreadGroup);
I did confirm that I am calling useResource:options: on the icb in the render loop.
Thoughts on how I should trouble shoot?
Thanks,