LibXenon
Bare-metal Xbox 360 homebrew library
|
#include "xe.h"
#include "xe_internal.h"
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <malloc.h>
#include <assert.h>
#include <stdlib.h>
#include <time.h>
#include <cache.h>
#include <xenon_smc/xenon_smc.h>
#include <stdint.h>
#include <debug.h>
Go to the source code of this file.
Macros | |
#define | WRITEBACK_ZONE_SIZE 0x20000 |
#define | RPTR_WRITEBACK 0x10000 |
#define | SCRATCH_WRITEBACK 0x10100 |
#define | RINGBUFFER_PRIMARY_SIZE (0x8000/4) |
#define | RINGBUFFER_SECONDARY_SIZE (0x400000/4) |
#define | RINGBUFFER_SECONDARY_GUARD (0x200000/4) |
#define | RADEON_CP_PACKET0 0x00000000 |
#define | RADEON_ONE_REG_WR (1 << 15) |
#define | CP_PACKET0(reg, n) (RADEON_CP_PACKET0 | ((n) << 16) | ((reg) >> 2)) |
#define | CP_PACKET0_TABLE(reg, n) (RADEON_CP_PACKET0 | RADEON_ONE_REG_WR | ((n) << 16) | ((reg) >> 2)) |
#define | VBPOOL_NUM_TRIANGLES 2000 |
#define | SEGMENT_SIZE 1024 |
Functions | |
void | Xe_pSyncToDevice (struct XenosDevice *xe, volatile void *data, int len) |
void | Xe_pSyncFromDevice (struct XenosDevice *xe, volatile void *data, int len) |
void * | Xe_pAlloc (struct XenosDevice *xe, u32 *phys, int size, int align) |
void | Xe_pFree (struct XenosDevice *xe, void *ptr) |
void | Xe_pInvalidateGpuCache_Primary (struct XenosDevice *xe, int base, int size) |
void | Xe_pRBCommitPrimary (struct XenosDevice *xe) |
void | Xe_pRBKickSegment (struct XenosDevice *xe, int base, int len) |
void | Xe_pRBKick (struct XenosDevice *xe) |
void | Xe_pRBMayKick (struct XenosDevice *xe) |
u32 | Xe_pRBAlloc (struct XenosDevice *xe) |
void | Xe_pSetSurfaceClip (struct XenosDevice *xe, int offset_x, int offset_y, int sc_left, int sc_top, int sc_right, int sc_bottom) |
void | Xe_pSetBin (struct XenosDevice *xe, u32 mask_low, u32 select_low, u32 mask_hi, u32 select_hi) |
void | Xe_pWaitUntilIdle (struct XenosDevice *xe, u32 what) |
void | Xe_pDrawNonIndexed (struct XenosDevice *xe, int num_points, int primtype) |
void | Xe_pDrawIndexedPrimitive (struct XenosDevice *xe, int primtype, int num_points, u32 indexbuffer, u32 indexbuffer_size, int indextype) |
void | Xe_pSetIndexOffset (struct XenosDevice *xe, int offset) |
void | Xe_pResetRingbuffer (struct XenosDevice *xe) |
void | Xe_pSetupRingbuffer (struct XenosDevice *xe, u32 buffer_base, u32 size_in_l2qw) |
void | Xe_pLoadUcodes (struct XenosDevice *xe, const u32 *ucode0, const u32 *ucode1) |
void | Xe_pWaitReady (struct XenosDevice *xe) |
void | Xe_pWaitReady2 (struct XenosDevice *xe) |
void | Xe_pInit1 (struct XenosDevice *xe) |
void | Xe_pReset (struct XenosDevice *xe) |
void | Xe_pResetCP (struct XenosDevice *xe, u32 buffer_base, u32 size_in_l2qw) |
void | Xe_pSetup (struct XenosDevice *xe, u32 buffer_base, u32 buffer_size, const u32 *ucode0, const u32 *ucode1) |
void | Xe_pMasterInit (struct XenosDevice *xe, u32 buffer_base) |
void | Xe_pEnableWriteback (struct XenosDevice *xe, u32 addr, int blocksize) |
void | Xe_pGInit0 (struct XenosDevice *xe) |
void | Xe_pGInit1 (struct XenosDevice *xe, int arg) |
void | Xe_pGInit2 (struct XenosDevice *xe) |
void | Xe_pGInit3 (struct XenosDevice *xe) |
void | Xe_pGInit4 (struct XenosDevice *xe) |
void | Xe_pGInit5 (struct XenosDevice *xe) |
void | Xe_pGInit6 (struct XenosDevice *xe) |
void | Xe_pGInit7 (struct XenosDevice *xe) |
void | Xe_pGInit8 (struct XenosDevice *xe) |
void | Xe_pGInit9 (struct XenosDevice *xe) |
void | Xe_pGInit10 (struct XenosDevice *xe) |
void | Xe_pGInit (struct XenosDevice *xe) |
void | Xe_DirtyAluConstant (struct XenosDevice *xe, int base, int len) |
void | Xe_DirtyFetch (struct XenosDevice *xe, int base, int len) |
struct XenosShader * | Xe_LoadShader (struct XenosDevice *xe, const char *filename) |
struct XenosShader * | Xe_LoadShaderFromMemory (struct XenosDevice *xe, void *m) |
void | Xe_pUploadShaderConstants (struct XenosDevice *xe, struct XenosShader *s) |
int | Xe_VBFCalcSize (struct XenosDevice *xe, const struct XenosVBFElement *fmt) |
int | Xe_pVBFNrComponents (struct XenosDevice *xe, const struct XenosVBFElement *fmt) |
int | Xe_VBFCalcStride (struct XenosDevice *xe, const struct XenosVBFFormat *fmt) |
void | Xe_pInvalidateGpuCache (struct XenosDevice *xe, int base, int size) |
void | Xe_pInvalidateGpuCacheAll (struct XenosDevice *xe, int base, int size) |
void | Xe_pUnlock (struct XenosDevice *xe, struct XenosLock *lock) |
void | Xe_pLock (struct XenosDevice *xe, struct XenosLock *lock, void *addr, u32 phys, int size, int flags) |
void | Xe_ShaderApplyVFetchPatches (struct XenosDevice *xe, struct XenosShader *sh, unsigned int index, const struct XenosVBFFormat *fmt) |
void | Xe_InstantiateShader (struct XenosDevice *xe, struct XenosShader *sh, unsigned int index) |
int | Xe_GetShaderLength (struct XenosDevice *xe, void *sh) |
void | Xe_Init (struct XenosDevice *xe) |
void | Xe_SetRenderTarget (struct XenosDevice *xe, struct XenosSurface *rt) |
void | Xe_pSetEDRAMLayout (struct XenosDevice *xe) |
void | Xe_pSetClearValues (struct XenosDevice *xe) |
void | Xe_ResolveInto (struct XenosDevice *xe, struct XenosSurface *surface, int source, int clear) |
void | Xe_Clear (struct XenosDevice *xe, int flags) |
void | Xe_Resolve (struct XenosDevice *xe) |
void | VERTEX_FETCH (u32 *dst, u32 base, int len) |
void | TEXTURE_FETCH (u32 *dst, u32 base, int width, int height, int pitch, int tiled, int format, u32 base_mip, int anisop, int filter, int uaddr, int vaddr) |
void | Xe_pLoadShader (struct XenosDevice *xe, int base, int type, int size) |
void | Xe_pAlign (struct XenosDevice *xe) |
void | Xe_pBlockUntilIdle (struct XenosDevice *xe) |
void | Xe_pStep (struct XenosDevice *xe, int x) |
void | Xe_pStuff (struct XenosDevice *xe) |
void | Xe_Fatal (struct XenosDevice *xe, const char *fmt,...) |
struct XenosSurface * | Xe_GetFramebufferSurface (struct XenosDevice *xe) |
void | Xe_SetFrameBufferSurface (struct XenosDevice *xe, struct XenosSurface *fb) |
void | Xe_Execute (struct XenosDevice *xe) |
void | Xe_pDebugSync (struct XenosDevice *xe) |
void | Xe_Sync (struct XenosDevice *xe) |
void | Xe_pUploadALUConstants (struct XenosDevice *xe) |
void | Xe_pUploadFetchConstants (struct XenosDevice *xe) |
void | Xe_pUploadClipPlane (struct XenosDevice *xe) |
void | Xe_pUploadIntegerConstants (struct XenosDevice *xe) |
void | Xe_pUploadControl (struct XenosDevice *xe) |
void | Xe_pUploadShader (struct XenosDevice *xe) |
void | Xe_pInitControl (struct XenosDevice *xe) |
void | Xe_SetZFunc (struct XenosDevice *xe, int z_func) |
void | Xe_SetZWrite (struct XenosDevice *xe, int zw) |
void | Xe_SetZEnable (struct XenosDevice *xe, int ze) |
void | Xe_SetFillMode (struct XenosDevice *xe, int front, int back) |
void | Xe_SetBlendControl (struct XenosDevice *xe, int col_src, int col_op, int col_dst, int alpha_src, int alpha_op, int alpha_dst) |
void | Xe_SetSrcBlend (struct XenosDevice *xe, unsigned int blend) |
void | Xe_SetDestBlend (struct XenosDevice *xe, unsigned int blend) |
void | Xe_SetBlendOp (struct XenosDevice *xe, unsigned int blendop) |
void | Xe_SetSrcBlendAlpha (struct XenosDevice *xe, unsigned int blend) |
void | Xe_SetDestBlendAlpha (struct XenosDevice *xe, unsigned int blend) |
void | Xe_SetBlendOpAlpha (struct XenosDevice *xe, unsigned int blendop) |
void | Xe_SetCullMode (struct XenosDevice *xe, unsigned int cullmode) |
void | Xe_SetAlphaTestEnable (struct XenosDevice *xe, int enable) |
void | Xe_SetAlphaFunc (struct XenosDevice *xe, unsigned int func) |
void | Xe_SetAlphaRef (struct XenosDevice *xe, float alpharef) |
void | Xe_SetStencilFunc (struct XenosDevice *xe, int bfff, unsigned int func) |
void | Xe_SetStencilEnable (struct XenosDevice *xe, unsigned int enable) |
void | Xe_SetStencilOp (struct XenosDevice *xe, int bfff, int fail, int zfail, int pass) |
void | Xe_SetStencilRef (struct XenosDevice *xe, int bfff, int ref) |
void | Xe_SetStencilMask (struct XenosDevice *xe, int bfff, int mask) |
void | Xe_SetStencilWriteMask (struct XenosDevice *xe, int bfff, int writemask) |
void | Xe_SetScissor (struct XenosDevice *xe, int enable, int left, int top, int right, int bottom) |
void | Xe_SetClipPlaneEnables (struct XenosDevice *xe, int enables) |
void | Xe_SetClipPlane (struct XenosDevice *xe, int idx, float *plane) |
void | Xe_InvalidateState (struct XenosDevice *xe) |
void | Xe_SetShader (struct XenosDevice *xe, int type, struct XenosShader *sh, int index) |
void | Xe_pSetState (struct XenosDevice *xe) |
void | Xe_SetTexture (struct XenosDevice *xe, int index, struct XenosSurface *tex) |
void | Xe_SetClearColor (struct XenosDevice *xe, u32 clearcolor) |
struct XenosVertexBuffer * | Xe_CreateVertexBuffer (struct XenosDevice *xe, int size) |
void | Xe_DestroyVertexBuffer (struct XenosDevice *xe, struct XenosVertexBuffer *vb) |
struct XenosVertexBuffer * | Xe_VBPoolAlloc (struct XenosDevice *xe, int size) |
void | Xe_VBPoolAdd (struct XenosDevice *xe, struct XenosVertexBuffer *vb) |
void | Xe_VBReclaim (struct XenosDevice *xe) |
void | Xe_VBBegin (struct XenosDevice *xe, int pitch) |
void | Xe_VBPut (struct XenosDevice *xe, void *data, int len) |
struct XenosVertexBuffer * | Xe_VBEnd (struct XenosDevice *xe) |
void | Xe_Draw (struct XenosDevice *xe, struct XenosVertexBuffer *vb, struct XenosIndexBuffer *ib) |
int | Xe_pCalcVtxCount (struct XenosDevice *xe, int primtype, int primcnt) |
void | Xe_DrawIndexedPrimitive (struct XenosDevice *xe, int type, int base_index, int min_index, int num_vertices, int start_index, int primitive_count) |
void | Xe_DrawPrimitive (struct XenosDevice *xe, int type, int start, int primitive_count) |
void | Xe_SetStreamSource (struct XenosDevice *xe, int index, struct XenosVertexBuffer *vb, int offset, int stride) |
void | Xe_SetIndices (struct XenosDevice *xe, struct XenosIndexBuffer *ib) |
struct XenosIndexBuffer * | Xe_CreateIndexBuffer (struct XenosDevice *xe, int length, int format) |
void | Xe_DestroyIndexBuffer (struct XenosDevice *xe, struct XenosIndexBuffer *ib) |
void * | Xe_VB_Lock (struct XenosDevice *xe, struct XenosVertexBuffer *vb, int offset, int size, int flags) |
void | Xe_VB_Unlock (struct XenosDevice *xe, struct XenosVertexBuffer *vb) |
void * | Xe_IB_Lock (struct XenosDevice *xe, struct XenosIndexBuffer *ib, int offset, int size, int flags) |
void | Xe_IB_Unlock (struct XenosDevice *xe, struct XenosIndexBuffer *ib) |
void | Xe_SetVertexShaderConstantF (struct XenosDevice *xe, int start, const float *data, int count) |
void | Xe_SetPixelShaderConstantF (struct XenosDevice *xe, int start, const float *data, int count) |
void | Xe_SetVertexShaderConstantB (struct XenosDevice *xe, int index, int value) |
void | Xe_SetPixelShaderConstantB (struct XenosDevice *xe, int index, int value) |
struct XenosSurface * | Xe_CreateTexture (struct XenosDevice *xe, unsigned int width, unsigned int height, unsigned int levels, int format, int tiled) |
void | Xe_DestroyTexture (struct XenosDevice *xe, struct XenosSurface *surface) |
void * | Xe_Surface_LockRect (struct XenosDevice *xe, struct XenosSurface *surface, int x, int y, int w, int h, int flags) |
void | Xe_Surface_Unlock (struct XenosDevice *xe, struct XenosSurface *surface) |
int | Xe_IsVBlank (struct XenosDevice *xe) |
Variables | |
u32 | xenos_ucode0 [] |
u32 | xenos_ucode1 [] |
int | stat_alu_uploaded = 0 |
#define CP_PACKET0 | ( | reg, | |
n | |||
) | (RADEON_CP_PACKET0 | ((n) << 16) | ((reg) >> 2)) |
#define CP_PACKET0_TABLE | ( | reg, | |
n | |||
) | (RADEON_CP_PACKET0 | RADEON_ONE_REG_WR | ((n) << 16) | ((reg) >> 2)) |
void Xe_Clear | ( | struct XenosDevice * | xe, |
int | flags | ||
) |
struct XenosIndexBuffer * Xe_CreateIndexBuffer | ( | struct XenosDevice * | xe, |
int | length, | ||
int | format | ||
) |
struct XenosSurface * Xe_CreateTexture | ( | struct XenosDevice * | xe, |
unsigned int | width, | ||
unsigned int | height, | ||
unsigned int | levels, | ||
int | format, | ||
int | tiled | ||
) |
struct XenosVertexBuffer * Xe_CreateVertexBuffer | ( | struct XenosDevice * | xe, |
int | size | ||
) |
void Xe_DestroyIndexBuffer | ( | struct XenosDevice * | xe, |
struct XenosIndexBuffer * | ib | ||
) |
void Xe_DestroyTexture | ( | struct XenosDevice * | xe, |
struct XenosSurface * | surface | ||
) |
void Xe_DestroyVertexBuffer | ( | struct XenosDevice * | xe, |
struct XenosVertexBuffer * | vb | ||
) |
void Xe_DirtyAluConstant | ( | struct XenosDevice * | xe, |
int | base, | ||
int | len | ||
) |
void Xe_DirtyFetch | ( | struct XenosDevice * | xe, |
int | base, | ||
int | len | ||
) |
void Xe_Draw | ( | struct XenosDevice * | xe, |
struct XenosVertexBuffer * | vb, | ||
struct XenosIndexBuffer * | ib | ||
) |
void Xe_DrawIndexedPrimitive | ( | struct XenosDevice * | xe, |
int | type, | ||
int | base_index, | ||
int | min_index, | ||
int | num_vertices, | ||
int | start_index, | ||
int | primitive_count | ||
) |
void Xe_DrawPrimitive | ( | struct XenosDevice * | xe, |
int | type, | ||
int | start, | ||
int | primitive_count | ||
) |
void Xe_Execute | ( | struct XenosDevice * | xe | ) |
void Xe_Fatal | ( | struct XenosDevice * | xe, |
const char * | fmt, | ||
... | |||
) |
struct XenosSurface * Xe_GetFramebufferSurface | ( | struct XenosDevice * | xe | ) |
int Xe_GetShaderLength | ( | struct XenosDevice * | xe, |
void * | sh | ||
) |
void * Xe_IB_Lock | ( | struct XenosDevice * | xe, |
struct XenosIndexBuffer * | ib, | ||
int | offset, | ||
int | size, | ||
int | flags | ||
) |
void Xe_IB_Unlock | ( | struct XenosDevice * | xe, |
struct XenosIndexBuffer * | ib | ||
) |
void Xe_Init | ( | struct XenosDevice * | xe | ) |
void Xe_InstantiateShader | ( | struct XenosDevice * | xe, |
struct XenosShader * | sh, | ||
unsigned int | index | ||
) |
void Xe_InvalidateState | ( | struct XenosDevice * | xe | ) |
int Xe_IsVBlank | ( | struct XenosDevice * | xe | ) |
struct XenosShader * Xe_LoadShader | ( | struct XenosDevice * | xe, |
const char * | filename | ||
) |
struct XenosShader * Xe_LoadShaderFromMemory | ( | struct XenosDevice * | xe, |
void * | m | ||
) |
void Xe_pAlign | ( | struct XenosDevice * | xe | ) |
void * Xe_pAlloc | ( | struct XenosDevice * | xe, |
u32 * | phys, | ||
int | size, | ||
int | align | ||
) |
void Xe_pBlockUntilIdle | ( | struct XenosDevice * | xe | ) |
int Xe_pCalcVtxCount | ( | struct XenosDevice * | xe, |
int | primtype, | ||
int | primcnt | ||
) |
void Xe_pDebugSync | ( | struct XenosDevice * | xe | ) |
void Xe_pDrawIndexedPrimitive | ( | struct XenosDevice * | xe, |
int | primtype, | ||
int | num_points, | ||
u32 | indexbuffer, | ||
u32 | indexbuffer_size, | ||
int | indextype | ||
) |
void Xe_pDrawNonIndexed | ( | struct XenosDevice * | xe, |
int | num_points, | ||
int | primtype | ||
) |
void Xe_pEnableWriteback | ( | struct XenosDevice * | xe, |
u32 | addr, | ||
int | blocksize | ||
) |
void Xe_pFree | ( | struct XenosDevice * | xe, |
void * | ptr | ||
) |
void Xe_pGInit | ( | struct XenosDevice * | xe | ) |
void Xe_pGInit0 | ( | struct XenosDevice * | xe | ) |
void Xe_pGInit1 | ( | struct XenosDevice * | xe, |
int | arg | ||
) |
void Xe_pGInit10 | ( | struct XenosDevice * | xe | ) |
void Xe_pGInit2 | ( | struct XenosDevice * | xe | ) |
void Xe_pGInit3 | ( | struct XenosDevice * | xe | ) |
void Xe_pGInit4 | ( | struct XenosDevice * | xe | ) |
void Xe_pGInit5 | ( | struct XenosDevice * | xe | ) |
void Xe_pGInit6 | ( | struct XenosDevice * | xe | ) |
void Xe_pGInit7 | ( | struct XenosDevice * | xe | ) |
void Xe_pGInit8 | ( | struct XenosDevice * | xe | ) |
void Xe_pGInit9 | ( | struct XenosDevice * | xe | ) |
void Xe_pInit1 | ( | struct XenosDevice * | xe | ) |
void Xe_pInitControl | ( | struct XenosDevice * | xe | ) |
void Xe_pInvalidateGpuCache | ( | struct XenosDevice * | xe, |
int | base, | ||
int | size | ||
) |
void Xe_pInvalidateGpuCache_Primary | ( | struct XenosDevice * | xe, |
int | base, | ||
int | size | ||
) |
void Xe_pInvalidateGpuCacheAll | ( | struct XenosDevice * | xe, |
int | base, | ||
int | size | ||
) |
void Xe_pLoadShader | ( | struct XenosDevice * | xe, |
int | base, | ||
int | type, | ||
int | size | ||
) |
void Xe_pLoadUcodes | ( | struct XenosDevice * | xe, |
const u32 * | ucode0, | ||
const u32 * | ucode1 | ||
) |
void Xe_pLock | ( | struct XenosDevice * | xe, |
struct XenosLock * | lock, | ||
void * | addr, | ||
u32 | phys, | ||
int | size, | ||
int | flags | ||
) |
void Xe_pMasterInit | ( | struct XenosDevice * | xe, |
u32 | buffer_base | ||
) |
u32 Xe_pRBAlloc | ( | struct XenosDevice * | xe | ) |
void Xe_pRBCommitPrimary | ( | struct XenosDevice * | xe | ) |
void Xe_pRBKick | ( | struct XenosDevice * | xe | ) |
void Xe_pRBKickSegment | ( | struct XenosDevice * | xe, |
int | base, | ||
int | len | ||
) |
void Xe_pRBMayKick | ( | struct XenosDevice * | xe | ) |
void Xe_pReset | ( | struct XenosDevice * | xe | ) |
void Xe_pResetCP | ( | struct XenosDevice * | xe, |
u32 | buffer_base, | ||
u32 | size_in_l2qw | ||
) |
void Xe_pResetRingbuffer | ( | struct XenosDevice * | xe | ) |
void Xe_pSetBin | ( | struct XenosDevice * | xe, |
u32 | mask_low, | ||
u32 | select_low, | ||
u32 | mask_hi, | ||
u32 | select_hi | ||
) |
void Xe_pSetClearValues | ( | struct XenosDevice * | xe | ) |
void Xe_pSetEDRAMLayout | ( | struct XenosDevice * | xe | ) |
void Xe_pSetIndexOffset | ( | struct XenosDevice * | xe, |
int | offset | ||
) |
void Xe_pSetState | ( | struct XenosDevice * | xe | ) |
void Xe_pSetSurfaceClip | ( | struct XenosDevice * | xe, |
int | offset_x, | ||
int | offset_y, | ||
int | sc_left, | ||
int | sc_top, | ||
int | sc_right, | ||
int | sc_bottom | ||
) |
void Xe_pSetup | ( | struct XenosDevice * | xe, |
u32 | buffer_base, | ||
u32 | buffer_size, | ||
const u32 * | ucode0, | ||
const u32 * | ucode1 | ||
) |
void Xe_pSetupRingbuffer | ( | struct XenosDevice * | xe, |
u32 | buffer_base, | ||
u32 | size_in_l2qw | ||
) |
void Xe_pStep | ( | struct XenosDevice * | xe, |
int | x | ||
) |
void Xe_pStuff | ( | struct XenosDevice * | xe | ) |
void Xe_pSyncFromDevice | ( | struct XenosDevice * | xe, |
volatile void * | data, | ||
int | len | ||
) |
void Xe_pSyncToDevice | ( | struct XenosDevice * | xe, |
volatile void * | data, | ||
int | len | ||
) |
void Xe_pUnlock | ( | struct XenosDevice * | xe, |
struct XenosLock * | lock | ||
) |
void Xe_pUploadALUConstants | ( | struct XenosDevice * | xe | ) |
void Xe_pUploadClipPlane | ( | struct XenosDevice * | xe | ) |
void Xe_pUploadControl | ( | struct XenosDevice * | xe | ) |
void Xe_pUploadFetchConstants | ( | struct XenosDevice * | xe | ) |
void Xe_pUploadIntegerConstants | ( | struct XenosDevice * | xe | ) |
void Xe_pUploadShader | ( | struct XenosDevice * | xe | ) |
void Xe_pUploadShaderConstants | ( | struct XenosDevice * | xe, |
struct XenosShader * | s | ||
) |
int Xe_pVBFNrComponents | ( | struct XenosDevice * | xe, |
const struct XenosVBFElement * | fmt | ||
) |
void Xe_pWaitReady | ( | struct XenosDevice * | xe | ) |
void Xe_pWaitReady2 | ( | struct XenosDevice * | xe | ) |
void Xe_pWaitUntilIdle | ( | struct XenosDevice * | xe, |
u32 | what | ||
) |
void Xe_Resolve | ( | struct XenosDevice * | xe | ) |
void Xe_ResolveInto | ( | struct XenosDevice * | xe, |
struct XenosSurface * | surface, | ||
int | source, | ||
int | clear | ||
) |
void Xe_SetAlphaFunc | ( | struct XenosDevice * | xe, |
unsigned int | func | ||
) |
void Xe_SetAlphaRef | ( | struct XenosDevice * | xe, |
float | alpharef | ||
) |
void Xe_SetAlphaTestEnable | ( | struct XenosDevice * | xe, |
int | enable | ||
) |
void Xe_SetBlendControl | ( | struct XenosDevice * | xe, |
int | col_src, | ||
int | col_op, | ||
int | col_dst, | ||
int | alpha_src, | ||
int | alpha_op, | ||
int | alpha_dst | ||
) |
void Xe_SetBlendOp | ( | struct XenosDevice * | xe, |
unsigned int | blendop | ||
) |
void Xe_SetBlendOpAlpha | ( | struct XenosDevice * | xe, |
unsigned int | blendop | ||
) |
void Xe_SetClearColor | ( | struct XenosDevice * | xe, |
u32 | clearcolor | ||
) |
void Xe_SetClipPlane | ( | struct XenosDevice * | xe, |
int | idx, | ||
float * | plane | ||
) |
void Xe_SetClipPlaneEnables | ( | struct XenosDevice * | xe, |
int | enables | ||
) |
void Xe_SetCullMode | ( | struct XenosDevice * | xe, |
unsigned int | cullmode | ||
) |
void Xe_SetDestBlend | ( | struct XenosDevice * | xe, |
unsigned int | blend | ||
) |
void Xe_SetDestBlendAlpha | ( | struct XenosDevice * | xe, |
unsigned int | blend | ||
) |
void Xe_SetFillMode | ( | struct XenosDevice * | xe, |
int | front, | ||
int | back | ||
) |
void Xe_SetFrameBufferSurface | ( | struct XenosDevice * | xe, |
struct XenosSurface * | fb | ||
) |
void Xe_SetIndices | ( | struct XenosDevice * | xe, |
struct XenosIndexBuffer * | ib | ||
) |
void Xe_SetPixelShaderConstantB | ( | struct XenosDevice * | xe, |
int | index, | ||
int | value | ||
) |
void Xe_SetPixelShaderConstantF | ( | struct XenosDevice * | xe, |
int | start, | ||
const float * | data, | ||
int | count | ||
) |
void Xe_SetRenderTarget | ( | struct XenosDevice * | xe, |
struct XenosSurface * | rt | ||
) |
void Xe_SetScissor | ( | struct XenosDevice * | xe, |
int | enable, | ||
int | left, | ||
int | top, | ||
int | right, | ||
int | bottom | ||
) |
void Xe_SetShader | ( | struct XenosDevice * | xe, |
int | type, | ||
struct XenosShader * | sh, | ||
int | index | ||
) |
void Xe_SetSrcBlend | ( | struct XenosDevice * | xe, |
unsigned int | blend | ||
) |
void Xe_SetSrcBlendAlpha | ( | struct XenosDevice * | xe, |
unsigned int | blend | ||
) |
void Xe_SetStencilEnable | ( | struct XenosDevice * | xe, |
unsigned int | enable | ||
) |
void Xe_SetStencilFunc | ( | struct XenosDevice * | xe, |
int | bfff, | ||
unsigned int | func | ||
) |
void Xe_SetStencilMask | ( | struct XenosDevice * | xe, |
int | bfff, | ||
int | mask | ||
) |
void Xe_SetStencilOp | ( | struct XenosDevice * | xe, |
int | bfff, | ||
int | fail, | ||
int | zfail, | ||
int | pass | ||
) |
void Xe_SetStencilRef | ( | struct XenosDevice * | xe, |
int | bfff, | ||
int | ref | ||
) |
void Xe_SetStencilWriteMask | ( | struct XenosDevice * | xe, |
int | bfff, | ||
int | writemask | ||
) |
void Xe_SetStreamSource | ( | struct XenosDevice * | xe, |
int | index, | ||
struct XenosVertexBuffer * | vb, | ||
int | offset, | ||
int | stride | ||
) |
void Xe_SetTexture | ( | struct XenosDevice * | xe, |
int | index, | ||
struct XenosSurface * | tex | ||
) |
void Xe_SetVertexShaderConstantB | ( | struct XenosDevice * | xe, |
int | index, | ||
int | value | ||
) |
void Xe_SetVertexShaderConstantF | ( | struct XenosDevice * | xe, |
int | start, | ||
const float * | data, | ||
int | count | ||
) |
void Xe_SetZEnable | ( | struct XenosDevice * | xe, |
int | ze | ||
) |
void Xe_SetZFunc | ( | struct XenosDevice * | xe, |
int | z_func | ||
) |
void Xe_SetZWrite | ( | struct XenosDevice * | xe, |
int | zw | ||
) |
void Xe_ShaderApplyVFetchPatches | ( | struct XenosDevice * | xe, |
struct XenosShader * | sh, | ||
unsigned int | index, | ||
const struct XenosVBFFormat * | fmt | ||
) |
void * Xe_Surface_LockRect | ( | struct XenosDevice * | xe, |
struct XenosSurface * | surface, | ||
int | x, | ||
int | y, | ||
int | w, | ||
int | h, | ||
int | flags | ||
) |
void Xe_Surface_Unlock | ( | struct XenosDevice * | xe, |
struct XenosSurface * | surface | ||
) |
void Xe_Sync | ( | struct XenosDevice * | xe | ) |
void * Xe_VB_Lock | ( | struct XenosDevice * | xe, |
struct XenosVertexBuffer * | vb, | ||
int | offset, | ||
int | size, | ||
int | flags | ||
) |
void Xe_VB_Unlock | ( | struct XenosDevice * | xe, |
struct XenosVertexBuffer * | vb | ||
) |
void Xe_VBBegin | ( | struct XenosDevice * | xe, |
int | pitch | ||
) |
struct XenosVertexBuffer * Xe_VBEnd | ( | struct XenosDevice * | xe | ) |
int Xe_VBFCalcSize | ( | struct XenosDevice * | xe, |
const struct XenosVBFElement * | fmt | ||
) |
int Xe_VBFCalcStride | ( | struct XenosDevice * | xe, |
const struct XenosVBFFormat * | fmt | ||
) |
void Xe_VBPoolAdd | ( | struct XenosDevice * | xe, |
struct XenosVertexBuffer * | vb | ||
) |
struct XenosVertexBuffer * Xe_VBPoolAlloc | ( | struct XenosDevice * | xe, |
int | size | ||
) |
void Xe_VBPut | ( | struct XenosDevice * | xe, |
void * | data, | ||
int | len | ||
) |
void Xe_VBReclaim | ( | struct XenosDevice * | xe | ) |