Skip to content

May I ask how to make the Execution of the shader Synchronous so that it will block until the result is ready? #20

@john012343210

Description

@john012343210

May I know how to achieve the following

#include "MyShaders/Public/MySimpleComputeShader.h"
 
FMySimpleComputeShaderDispatchParams Params(1, 1, 1);
 
Params.Input[0] = 2;
Params.Input[1] = 5;
 
// Block the thread until complete.
int OutputVal=FMySimpleComputeShaderInterface::Dispatch(Params);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions