mirror of
https://github.com/red-prig/fpPS4.git
synced 2024-12-04 04:22:29 +00:00
+
This commit is contained in:
parent
e250c40ad2
commit
39e720dd99
@ -1236,8 +1236,10 @@ begin
|
||||
end;
|
||||
|
||||
//Draws a set of primitives using indices auto-generated by the VGT
|
||||
function ps4_sceGnmDrawIndexAuto(cmdBuffer:PDWORD;numDwords:DWORD;
|
||||
indexCount,modifier:DWORD):Integer; SysV_ABI_CDecl;
|
||||
function ps4_sceGnmDrawIndexAuto(cmdBuffer:PDWORD;
|
||||
numDwords:DWORD;
|
||||
indexCount,
|
||||
modifier:DWORD):Integer; SysV_ABI_CDecl;
|
||||
begin
|
||||
Result:=-1;
|
||||
if (cmdBuffer=nil) or (numDwords<7) or ((modifier and $1ffffffe)<>0) then Exit;
|
||||
@ -1249,8 +1251,12 @@ begin
|
||||
Result:=0;
|
||||
end;
|
||||
|
||||
function ps4_sceGnmDrawIndex(cmdBuffer:PDWORD;numDwords:DWORD;
|
||||
indexCount:DWORD;indexAddr:Pointer;modifier,inlineMode:DWORD):Integer; SysV_ABI_CDecl;
|
||||
function ps4_sceGnmDrawIndex(cmdBuffer:PDWORD;
|
||||
numDwords:DWORD;
|
||||
indexCount:DWORD;
|
||||
indexAddr:Pointer;
|
||||
modifier,
|
||||
inlineMode:DWORD):Integer; SysV_ABI_CDecl;
|
||||
begin
|
||||
Result:=0;
|
||||
if (cmdBuffer=nil) or (numDwords<10) or (indexAddr=nil) or
|
||||
@ -1267,6 +1273,25 @@ begin
|
||||
cmdBuffer[7]:=0;
|
||||
end;
|
||||
|
||||
function ps4_sceGnmDrawIndexOffset(cmdBuffer:PDWORD;
|
||||
numDwords:DWORD;
|
||||
indexOffset:DWORD;
|
||||
indexCount:DWORD;
|
||||
modifier:DWORD):Integer; SysV_ABI_CDecl;
|
||||
begin
|
||||
Result:=-1;
|
||||
if (cmdBuffer=nil) or (numDwords<>9) then Exit;
|
||||
|
||||
cmdBuffer[0]:=(modifier and 1) or $c0033500;
|
||||
cmdBuffer[1]:=indexCount;
|
||||
cmdBuffer[2]:=indexOffset;
|
||||
cmdBuffer[3]:=indexCount;
|
||||
cmdBuffer[4]:=0;
|
||||
cmdBuffer[5]:=$c0021000;
|
||||
cmdBuffer[6]:=0;
|
||||
Result:=0;
|
||||
end;
|
||||
|
||||
//Checks if performance counters are available for use by user applications.
|
||||
function ps4_sceGnmIsUserPaEnabled:Boolean; SysV_ABI_CDecl;
|
||||
begin
|
||||
@ -1683,6 +1708,7 @@ begin
|
||||
|
||||
lib^.set_proc($186B27EE3313C70E,@ps4_sceGnmDrawIndexAuto);
|
||||
lib^.set_proc($1E54CFA19FE863B6,@ps4_sceGnmDrawIndex);
|
||||
lib^.set_proc($A1833E6337C29B66,@ps4_sceGnmDrawIndexOffset);
|
||||
|
||||
lib^.set_proc($8E0DF7AC428B7D5B,@ps4_sceGnmIsUserPaEnabled);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user