This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdint.h> | |
| /** | |
| * @brief Swap between eDram Graphics mode and Linear mode address encoding | |
| * | |
| * @param offset - The offset address to encode | |
| * | |
| * @return offset in the opposite address mode. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef _PROGRAM_H_ | |
| #define _PROGRAM_H_ | |
| #include <stdint.h> | |
| typedef enum SceGxmProgramType | |
| { | |
| SCE_GXM_VERTEX_PROGRAM, | |
| SCE_GXM_FRAGMENT_PROGRAM | |
| } SceGxmProgramType; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /**** slave_eventhandler.use.asm: File ****/ | |
| SlaveEventHandler: /* Function */ | |
| smlsi #0, #0, #0, #1, incrementmode, incrementmode, incrementmode, incrementmode, #0, #0, #0 | |
| mov r15, #0x00000000 | |
| mov r22, #0x00000000 | |
| phas #0, #0, pixel, end, parallel | |
| or.end r0, r0, #0x00000000 | |
| JumpToSlaveSupervisor: /* Function */ | |
| mov r31, pclink |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// SCE CONFIDENTIAL | |
| /// Copyright (C) 2012 Sony Computer Entertainment Inc. | |
| /// All Rights Reserved. | |
| /// | |
| // | |
| // Example custom builtin | |
| // | |
| //float4 texTESTD(sampler2D samp, float2 s) __attribute__((Builtin, BuiltinUID("TEX_TEST_D"), AcceptsTemplateType(1))); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <heap.h> | |
| #include <psp2/gxm.h> | |
| #include <psp2/libdbg.h> | |
| #include <psp2/kernel/clib.h> | |
| #include <psp2/kernel/sysmem.h> | |
| #include <stdio.h> | |
| static SceUID ramMemblock; |