procedure IAGetVertexBuffers(StartSlot: UINT; NumBuffers: UINT; out ppVertexBuffers: PID3D11Buffer;
out pStrides: PUINT; out pOffsets: PUINT); stdcall;
i use this function failed
in Delphi XE8
var
pBuffers: array[0..32] of ID3D11Buffer;
pStrides: array[0..32] of UINT;
pOffsets: array[0..32] of UINT;
begin
ZeroMemory(@pBuffers,SizeOf(pBuffers));
ZeroMemory(@pStrides,SizeOf(pStrides));
ZeroMemory(@pOffsets,SizeOf(pOffsets));
g_pImmediateContext.IAGetVertexBuffers(0,32,@pBuffers[0],@pStrides[0],@pOffsets[0]);---build failed
end;
I modified to
procedure IAGetVertexBuffers(StartSlot: UINT; NumBuffers: UINT; out ppVertexBuffers: ID3D11Buffer;
out pStrides: UINT; out pOffsets: UINT); stdcall;
g_pImmediateContext.IAGetVertexBuffers(0,32,pBuffers[0],pStrides[0],pOffsets[0]);-- is ok
procedure IAGetVertexBuffers(StartSlot: UINT; NumBuffers: UINT; out ppVertexBuffers: PID3D11Buffer; out pStrides: PUINT; out pOffsets: PUINT); stdcall; i use this function failed
in Delphi XE8 var pBuffers: array[0..32] of ID3D11Buffer; pStrides: array[0..32] of UINT; pOffsets: array[0..32] of UINT; begin ZeroMemory(@pBuffers,SizeOf(pBuffers)); ZeroMemory(@pStrides,SizeOf(pStrides)); ZeroMemory(@pOffsets,SizeOf(pOffsets)); g_pImmediateContext.IAGetVertexBuffers(0,32,@pBuffers[0],@pStrides[0],@pOffsets[0]);---build failed end;
I modified to procedure IAGetVertexBuffers(StartSlot: UINT; NumBuffers: UINT; out ppVertexBuffers: ID3D11Buffer; out pStrides: UINT; out pOffsets: UINT); stdcall; g_pImmediateContext.IAGetVertexBuffers(0,32,pBuffers[0],pStrides[0],pOffsets[0]);-- is ok