Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/amdilc/amdilc.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,12 @@ void ilcDisassembleShader(
freeKernel(kernel);
free(kernel);
}

IlcRecompiledShader ilcRecompileShader(
const void* code,
unsigned size,
const unsigned* inputPassthroughLocations,
unsigned passthroughCount)
{
return ilcRecompileKernel(code, size / sizeof(uint32_t), inputPassthroughLocations, passthroughCount);
}
13 changes: 13 additions & 0 deletions src/amdilc/amdilc.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,26 @@ typedef struct _IlcShader {
IlcBinding* bindings;
unsigned inputCount;
IlcInput* inputs;
unsigned outputCount;
uint32_t* outputLocations;
char* name;
} IlcShader;

typedef struct _IlcRecompiledShader {
unsigned codeSize;
uint32_t* code;
} IlcRecompiledShader;

IlcShader ilcCompileShader(
const void* code,
unsigned size);

IlcRecompiledShader ilcRecompileShader(
const void* code,
unsigned size,
const unsigned* inputPassthroughLocations,
unsigned passthroughCount);

IlcShader ilcCompileRectangleGeometryShader(
unsigned psInputCount,
const IlcInput* psInputs);
Expand Down
Loading