Crate EMCompute

source ·

Structs§

  • CKernel which will represent your GPU task like how Manifest.xml does in an android project
  • this struct is for passing data based on its bind index in gpu side
  • as config field you have to provide GPUComputingConfig which represent settings which you wanted
  • all DataBinder types which have the same @group index in your kernel code must all be gathered in this type

Enums§

  • EMCompute v1.0.0 changes to the api :
  • this settings used to tell gpu pre information about our work
  • this enum is used to tell to API to setup GPU resources based on power saving rules or not
  • this enum affects speed of the api by setting how much gpu resources are needed directly , if you take too much which your hardware cannot provide , panic happens

Functions§

  • the simple and compact function for sending your computing task to the gpu side
  • because setting CKernel config can be annoying if you just want to do simple task , this function provides general config which will meet most of your needs