Function checkCallResults
- checkCallResults<T>(t, texture, textureType, sampler, calls, results, shortShaderStage, gpuTexture?): Promise<undefined | Error>
Parameters
textureType: string
sampler: undefined | GPUSamplerDescriptor
results: {
results: PerTexelComponent<number>[];
runner: {
run: ((gpuTexture) => Promise<PerTexelComponent<number>[]>);
destroy() => void;
};
}
runner: {
run: ((gpuTexture) => Promise<PerTexelComponent<number>[]>);
destroy() => void;
}
run: ((gpuTexture) => Promise<PerTexelComponent<number>[]>)
- (gpuTexture): Promise<PerTexelComponent<number>[]>
Parameters
gpuTexture: GPUExternalTexture | GPUTexture
destroy:function
- destroy(): void
Returns void
shortShaderStage: "v" | "f" | "c"
Optional
gpuTexture: GPUTexture
Returns Promise<undefined | Error>
Checks the result of each call matches the expected result.