vitasdk
Documentation of the vitasdk

Detailed Description

Exports for User.


Using this library in your project

Include the header file in your project:


Link the library to the executable:

SceShaccCg_stub


Load the required module:

sceKernelLoadStartModule("path:/to/libshacccg.suprx", 0, 0, 0, &opt_arg, &status_arg);
SceUID sceKernelLoadStartModule(const char *path, SceSize args, void *argp, int flags, SceKernelLMOption *option, int *status)



Functions

 VITASDK_BUILD_ASSERT_EQ (4, SceShaccCgParameter)
 
 VITASDK_BUILD_ASSERT_EQ (0xC, SceShaccCgSourceFile)
 
 VITASDK_BUILD_ASSERT_EQ (0xC, SceShaccCgSourceLocation)
 
 VITASDK_BUILD_ASSERT_EQ (0x18, SceShaccCgCallbackList)
 
 VITASDK_BUILD_ASSERT_EQ (0x68, SceShaccCgCompileOptions)
 
 VITASDK_BUILD_ASSERT_EQ (0x10, SceShaccCgDiagnosticMessage)
 
 VITASDK_BUILD_ASSERT_EQ (0x10, SceShaccCgCompileOutput)
 
int sceShaccCgInitializeCompileOptions (SceShaccCgCompileOptions *options)
 
SceShaccCgCompileOutput const * sceShaccCgCompileProgram (const SceShaccCgCompileOptions *options, const SceShaccCgCallbackList *callbacks, int unk)
 
int sceShaccCgSetDefaultAllocator (void *(*malloc_cb)(unsigned int), void(*free_cb)(void *))
 
void sceShaccCgInitializeCallbackList (SceShaccCgCallbackList *callbacks, SceShaccCgCallbackDefaults defaults)
 
void sceShaccCgDestroyCompileOutput (SceShaccCgCompileOutput const *output)
 
void sceShaccCgReleaseCompiler (void)
 
const char * sceShaccCgGetVersionString (void)
 

Typedefs

typedef void const * SceShaccCgParameter
 
typedef SceShaccCgSourceFile *(* SceShaccCgCallbackOpenFile) (const char *fileName, const SceShaccCgSourceLocation *includedFrom, const SceShaccCgCompileOptions *compileOptions, const char **errorString)
 
typedef void(* SceShaccCgCallbackReleaseFile) (const SceShaccCgSourceFile *file, const SceShaccCgCompileOptions *compileOptions)
 
typedef const char *(* SceShaccCgCallbackLocateFile) (const char *fileName, const SceShaccCgSourceLocation *includedFrom, SceUInt32 searchPathCount, const char *const *searchPaths, const SceShaccCgCompileOptions *compileOptions, const char **errorString)
 
typedef const char *(* SceShaccCgCallbackAbsolutePath) (const char *fileName, const SceShaccCgSourceLocation *includedFrom, const SceShaccCgCompileOptions *compileOptions)
 
typedef void(* SceShaccCgCallbackReleaseFileName) (const char *fileName, const SceShaccCgCompileOptions *compileOptions)
 
typedef SceInt32(* SceShaccCgCallbackFileDate) (const SceShaccCgSourceFile *file, const SceShaccCgSourceLocation *includedFrom, const SceShaccCgCompileOptions *compileOptions, int64_t *timeLastStatusChange, int64_t *timeLastModified)
 

Data Structure Documentation

◆ SceShaccCgSourceFile

struct SceShaccCgSourceFile
Data Fields
const char * fileName
const char * text
SceUInt32 size

◆ SceShaccCgSourceLocation

struct SceShaccCgSourceLocation
Data Fields
const SceShaccCgSourceFile * file
SceUInt32 lineNumber
SceUInt32 columnNumber

◆ SceShaccCgCallbackList

struct SceShaccCgCallbackList

◆ SceShaccCgCompileOptions

struct SceShaccCgCompileOptions
Data Fields
const char * mainSourceFile
SceShaccCgTargetProfile targetProfile
const char * entryFunctionName
SceUInt32 searchPathCount
const char *const * searchPaths
SceUInt32 macroDefinitionCount
const char *const * macroDefinitions
SceUInt32 includeFileCount
const char *const * includeFiles
SceUInt32 suppressedWarningsCount
const SceUInt32 * suppressedWarnings
SceShaccCgLocale locale
SceInt32 useFx
SceInt32 noStdlib
SceInt32 optimizationLevel
SceInt32 useFastmath
SceInt32 useFastprecision
SceInt32 useFastint
int field_48
SceInt32 warningsAsErrors
SceInt32 performanceWarnings
SceInt32 warningLevel
SceInt32 pedantic
SceInt32 pedanticError
int field_60
int field_64

◆ SceShaccCgDiagnosticMessage

struct SceShaccCgDiagnosticMessage
Data Fields
SceShaccCgDiagnosticLevel level
SceUInt32 code
const SceShaccCgSourceLocation * location
const char * message

◆ SceShaccCgCompileOutput

struct SceShaccCgCompileOutput
Data Fields
const uint8_t * programData
SceUInt32 programSize
SceInt32 diagnosticCount
const SceShaccCgDiagnosticMessage * diagnostics

Typedef Documentation

◆ SceShaccCgParameter

typedef void const* SceShaccCgParameter

◆ SceShaccCgCallbackOpenFile

typedef SceShaccCgSourceFile*(* SceShaccCgCallbackOpenFile) (const char *fileName, const SceShaccCgSourceLocation *includedFrom, const SceShaccCgCompileOptions *compileOptions, const char **errorString)

◆ SceShaccCgCallbackReleaseFile

typedef void(* SceShaccCgCallbackReleaseFile) (const SceShaccCgSourceFile *file, const SceShaccCgCompileOptions *compileOptions)

◆ SceShaccCgCallbackLocateFile

typedef const char*(* SceShaccCgCallbackLocateFile) (const char *fileName, const SceShaccCgSourceLocation *includedFrom, SceUInt32 searchPathCount, const char *const *searchPaths, const SceShaccCgCompileOptions *compileOptions, const char **errorString)

◆ SceShaccCgCallbackAbsolutePath

typedef const char*(* SceShaccCgCallbackAbsolutePath) (const char *fileName, const SceShaccCgSourceLocation *includedFrom, const SceShaccCgCompileOptions *compileOptions)

◆ SceShaccCgCallbackReleaseFileName

typedef void(* SceShaccCgCallbackReleaseFileName) (const char *fileName, const SceShaccCgCompileOptions *compileOptions)

◆ SceShaccCgCallbackFileDate

typedef SceInt32(* SceShaccCgCallbackFileDate) (const SceShaccCgSourceFile *file, const SceShaccCgSourceLocation *includedFrom, const SceShaccCgCompileOptions *compileOptions, int64_t *timeLastStatusChange, int64_t *timeLastModified)

Enumeration Type Documentation

◆ SceShaccCgDiagnosticLevel

Enumerator
SCE_SHACCCG_DIAGNOSTIC_LEVEL_INFO 
SCE_SHACCCG_DIAGNOSTIC_LEVEL_WARNING 
SCE_SHACCCG_DIAGNOSTIC_LEVEL_ERROR 

◆ SceShaccCgTargetProfile

Enumerator
SCE_SHACCCG_PROFILE_VP 
SCE_SHACCCG_PROFILE_FP 

◆ SceShaccCgCallbackDefaults

Enumerator
SCE_SHACCCG_SYSTEM_FILES 
SCE_SHACCCG_TRIVIAL 

◆ SceShaccCgLocale

Enumerator
SCE_SHACCCG_ENGLISH 
SCE_SHACCCG_JAPANESE 

Function Documentation

◆ VITASDK_BUILD_ASSERT_EQ() [1/7]

VITASDK_BUILD_ASSERT_EQ ( ,
SceShaccCgParameter   
)

◆ VITASDK_BUILD_ASSERT_EQ() [2/7]

VITASDK_BUILD_ASSERT_EQ ( 0xC  ,
SceShaccCgSourceFile   
)

◆ VITASDK_BUILD_ASSERT_EQ() [3/7]

VITASDK_BUILD_ASSERT_EQ ( 0xC  ,
SceShaccCgSourceLocation   
)

◆ VITASDK_BUILD_ASSERT_EQ() [4/7]

VITASDK_BUILD_ASSERT_EQ ( 0x18  ,
SceShaccCgCallbackList   
)

◆ VITASDK_BUILD_ASSERT_EQ() [5/7]

VITASDK_BUILD_ASSERT_EQ ( 0x68  ,
SceShaccCgCompileOptions   
)

◆ VITASDK_BUILD_ASSERT_EQ() [6/7]

VITASDK_BUILD_ASSERT_EQ ( 0x10  ,
SceShaccCgDiagnosticMessage   
)

◆ VITASDK_BUILD_ASSERT_EQ() [7/7]

VITASDK_BUILD_ASSERT_EQ ( 0x10  ,
SceShaccCgCompileOutput   
)

◆ sceShaccCgInitializeCompileOptions()

int sceShaccCgInitializeCompileOptions ( SceShaccCgCompileOptions options)

◆ sceShaccCgCompileProgram()

SceShaccCgCompileOutput const* sceShaccCgCompileProgram ( const SceShaccCgCompileOptions options,
const SceShaccCgCallbackList callbacks,
int  unk 
)

◆ sceShaccCgSetDefaultAllocator()

int sceShaccCgSetDefaultAllocator ( void *(*)(unsigned int)  malloc_cb,
void(*)(void *)  free_cb 
)

◆ sceShaccCgInitializeCallbackList()

void sceShaccCgInitializeCallbackList ( SceShaccCgCallbackList callbacks,
SceShaccCgCallbackDefaults  defaults 
)

◆ sceShaccCgDestroyCompileOutput()

void sceShaccCgDestroyCompileOutput ( SceShaccCgCompileOutput const *  output)

◆ sceShaccCgReleaseCompiler()

void sceShaccCgReleaseCompiler ( void  )

◆ sceShaccCgGetVersionString()

const char* sceShaccCgGetVersionString ( void  )