Luna::RHI::fill_compute_pipeline_state_desc_from_compile_result

void fill_compute_pipeline_state_desc_from_compile_result(ComputePipelineStateDesc &desc, const ShaderCompiler::ShaderCompileResult &compile_result)

Fills cs, metal_numthreads_x, metal_numthreads_y and metal_numthreads_z properties of ComputePipelineStateDesc using shader compile results.

Parameters

  • out desc

    The compute pipeline state descriptor to fill.

  • in compile_result

    The compile result used for filling the descriptor.