Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
red-prig committed Feb 27, 2024
1 parent 566abba commit ae897da
Show file tree
Hide file tree
Showing 14 changed files with 42 additions and 40 deletions.
6 changes: 3 additions & 3 deletions spirv/srCacheOp.pas
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ interface
type
PsrCacheOp=^TsrCacheOp;
TsrCacheOp=object
private
public
pLeft,pRight:PsrCacheOp;
//----
function c(n1,n2:PsrCacheOp):Integer; static;
private
key:packed record
place:PsrOpBlock;
OpId:DWORD;
dtype:TsrDataType;
count:DWORD;
end;
pData:PPsrRegNode;
function c(n1,n2:PsrCacheOp):Integer; static;
public
pDst:PsrNode;
end;
Expand Down
6 changes: 3 additions & 3 deletions spirv/srConst.pas
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ ntConst=class(TsrNodeVmt)
PPsrConst=^PsrConst;
PsrConst=^TsrConst;
TsrConst=packed object(TsrNode)
private
public
pPrev,pNext,pLeft,pRight:PsrConst;
//--
function c(n1,n2:PsrConst):Integer; static;
private
ID:TsrRefId; //post id
fOpId:WORD;
fCount:WORD;
FType:PsrType;
pData:PPsrNode;
function c(n1,n2:PsrConst):Integer; static;
public
property pType:PsrType read FType;
property OpId:WORD read fOpId;
Expand Down
6 changes: 3 additions & 3 deletions spirv/srDecorate.pas
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ interface

PsrDecorate=^TsrDecorate;
TsrDecorate=object
private
public
pLeft,pRight:PsrDecorate;
//----
function c(n1,n2:PsrDecorate):Integer; static;
private
key:packed record
data:PsrNode;
param:array[0..2] of DWORD;
end;
function c(n1,n2:PsrDecorate):Integer; static;
public
node:PSpirvOp;
end;
Expand Down
6 changes: 3 additions & 3 deletions spirv/srFragLayout.pas
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ ntFragLayout=class(ntDescriptor)

PsrFragLayout=^TsrFragLayout;
TsrFragLayout=object(TsrDescriptor)
private
public
pLeft,pRight:PsrFragLayout;
//----
itype:TpsslInputType;
function c(n1,n2:PsrFragLayout):Integer; static;
private
itype:TpsslInputType;
public
pReg:PsrRegNode;
Procedure Init; inline;
Expand Down
6 changes: 3 additions & 3 deletions spirv/srInput.pas
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ ntInput=class(ntDescriptor)
PsrInput=^TsrInput;

TsrInput=object(TsrDescriptor)
private
public
pLeft,pRight:PsrInput;
//----
function c(n1,n2:PsrInput):Integer; static;
private
key:packed record
itype:TpsslInputType;
typeid:Byte;
end;
function c(n1,n2:PsrInput):Integer; static;
public
pReg:PsrRegNode;
property itype:TpsslInputType read key.itype;
Expand Down
6 changes: 3 additions & 3 deletions spirv/srLayout.pas
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ TVNode=record
pLine:PspirvOp;
end;
TNodeList=specialize TNodeList<PVNode>;
private
public
pLeft,pRight:PsrChain;
//--
function c(n1,n2:PsrChain):Integer; static;
private
fwrite_count:DWORD;
//--
ID:TsrRefId; //post id
Expand All @@ -88,7 +89,6 @@ TVNode=record
FWriter:PsrNode;
Fdtype:TsrDataType;
FList:TNodeList;
function c(n1,n2:PsrChain):Integer; static;
Procedure SetWriter(t:PsrNode);
Function GetWriter:PsrNode;
Procedure SetBuffer(t:PsrNode);
Expand Down
2 changes: 1 addition & 1 deletion spirv/srLiteral.pas
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ntLiteralConst=class(ntLiteral)

PsrLiteral=^TsrLiteral;
TsrLiteral=object(TsrNode)
private
public
pLeft,pRight:PsrLiteral;
public
dtype:TsrDataType;
Expand Down
12 changes: 7 additions & 5 deletions spirv/srOp.pas
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ ntFunc=class(TsrNodeVmt)

POpParamNode=^TOpParamNode;
TOpParamNode=packed object
private
public
pNext:POpParamNode;
private
pParent:PspirvOp;
pValue:PsrNode;
procedure SetValue(v:PsrNode);
Expand All @@ -69,8 +70,9 @@ ntFunc=class(TsrNodeVmt)

PsrOpCustom=^TsrOpCustom;
TsrOpCustom=object(TsrNode)
private
public
pPrev,pNext:PsrOpCustom;
private
pParent:PsrOpBlock;
end;

Expand Down Expand Up @@ -181,14 +183,14 @@ ntFunc=class(TsrNodeVmt)

PSpirvFunc=^TSpirvFunc;
TSpirvFunc=object(TsrNode)
private
public
pPrev,pNext,pLeft,pRight:PSpirvFunc;
//----
function c(n1,n2:PSpirvFunc):Integer; static;
private
FName:RawByteString;
FTop:TsrOpBlock;
FBlock:PsrOpBlock;
ID:TsrRefId; //post id
function c(n1,n2:PSpirvFunc):Integer; static;
public
property Name:RawByteString read FName;
property pBlock:PsrOpBlock read FBlock;
Expand Down
6 changes: 3 additions & 3 deletions spirv/srPrivate.pas
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,16 @@ TVNode=record
end;
TNodeList=specialize TNodeList<PVNode>;
TVoltList=specialize TNodeList<PsrVolatile>;
private
public
pLeft,pRight:PsrPrivate;
//----
function c(n1,n2:PsrPrivate):Integer; static;
private
fwrite_count:DWORD;
//
FSource:PsrRegSlot;
//
FLineList:TNodeList;
FVoltList:TVoltList;
function c(n1,n2:PsrPrivate):Integer; static;
Procedure SetRegType(rtype:TsrDataType);
function GetRegType:TsrDataType;
public
Expand Down
4 changes: 2 additions & 2 deletions spirv/srReg.pas
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ TRegDNode=record
TRegDNodeList=specialize TNodeStack<PRegDNode>;

TsrRegNode=packed object(TsrNode)
private
public
pPrev,pNext:PsrRegNode;
//
private
ID:TsrRefId; //post id
F:bitpacked record
dtype:TsrDataType;
Expand Down
6 changes: 3 additions & 3 deletions spirv/srTypes.pas
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ ntType=class(TsrNodeVmt)
PPsrType=^PsrType;
PsrType=^TsrType;
TsrType=packed object(TsrNode)
private
public
pPrev,pNext,pLeft,pRight:PsrType;
//
function c(n1,n2:PsrType):Integer; static;
private
ID:TsrRefId; //post id
fdtype:TsrDataType;
fsize:DWORD;
fOpId:WORD;
fcount:WORD;
pData:PPsrNode;
function c(n1,n2:PsrType):Integer; static;
public
property size:DWORD read fsize;
property OpId:WORD read fOpId;
Expand Down
6 changes: 3 additions & 3 deletions spirv/srUniform.pas
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ ntUniform=class(ntDescriptor)

PsrUniform=^TsrUniform;
TsrUniform=object(TsrDescriptor)
private
public
pLeft,pRight:PsrUniform;
//----
function c(n1,n2:PsrUniform):Integer; static;
private
pLayout:PsrDataLayout;
//
fwrite_count:DWORD;
//
FReg:TsrRegUniform;
function c(n1,n2:PsrUniform):Integer; static;
public
Procedure Init; inline;
function pReg:PsrRegUniform; inline;
Expand Down
4 changes: 2 additions & 2 deletions spirv/srVariable.pas
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ ntVariable=class(TsrNodeVmt)

PsrVariable=^TsrVariable;
TsrVariable=packed object(TsrNode)
private
public
pPrev,pNext:PsrVariable;
//
private
fwrite_count:DWORD;
ID:TsrRefId; //post id
FType:PsrType;
Expand Down
6 changes: 3 additions & 3 deletions spirv/srVertLayout.pas
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ ntVertLayout=class(ntDescriptor)

PsrVertLayout=^TsrVertLayout;
TsrVertLayout=object(TsrDescriptor)
private
public
pLeft,pRight:PsrVertLayout;
//----
pLayout:PsrDataLayout;
function c(n1,n2:PsrVertLayout):Integer; static;
private
pLayout:PsrDataLayout;
public
pReg:PsrRegNode;
procedure Init(p:PsrDataLayout); inline;
Expand Down

0 comments on commit ae897da

Please sign in to comment.