ae2f_docs
Loading...
Searching...
No Matches
aclspv.h File Reference
#include <ae2f/Keys.h>
#include <ae2f/cc.h>
#include "./aclspv/abi.h"
#include "./aclspv/spvty.h"
#include <clang-c/Index.h>

Go to the source code of this file.

Enumerations

enum  e_aclspv_compile_t {
  ACLSPV_COMPILE_OK , ACLSPV_COMPILE_ALLOC_FAILED , ACLSPV_COMPILE_MET_INVAL , ACLSPV_COMPILE_ERR_CLANG ,
  ACLSPV_COMPILE_TOO_BIG , ACLSPV_COMPILE_NO_IMPL , ACLSPV_COMPILE_WORKGROUP_MUST_BE_CONSTANT_ARRAY , ACLSPV_COMPILE_STORAGE_CLASS_UNDEFINED
}

Functions

ae2f_extern ACLSPV_ABI_DECL e_aclspv_compile_t aclspv_compile (struct CXUnsavedFile *ae2f_restrict const rdwr_unsaved, const unsigned c_unsaved_count, const char *ae2f_restrict const *ae2f_restrict const rd_argv_opt, const int c_argc, aclspv_wrdcount_t *ae2f_restrict rwr_output_count_opt, aclspv_wrd_t *ae2f_restrict *ae2f_restrict rwr_output, enum CXErrorCode *ae2f_restrict rwr_cxerr_opt)

Detailed Description

Compiles OpenCL C kernel code to SPIR-V for Vulkan.

Definition in file aclspv.h.

Enumeration Type Documentation

◆ e_aclspv_compile_t

enum e_aclspv_compile_t

Definition at line 17 of file aclspv.h.

Function Documentation

◆ aclspv_compile()

ae2f_extern ACLSPV_ABI_DECL e_aclspv_compile_t aclspv_compile ( struct CXUnsavedFile *ae2f_restrict const rdwr_unsaved,
const unsigned c_unsaved_count,
const char *ae2f_restrict const *ae2f_restrict const rd_argv_opt,
const int c_argc,
aclspv_wrdcount_t *ae2f_restrict rwr_output_count_opt,
aclspv_wrd_t *ae2f_restrict *ae2f_restrict rwr_output,
enum CXErrorCode *ae2f_restrict rwr_cxerr_opt )

anchor

IDX must be w0 at the end w0: current entry point index v0: current variable table (scale)

Definition at line 32 of file aclspv.c.