My son has 1st hand experience of thisYou do need to be careful because even the best LLM chatbots are still not good at counting
I have changed the next few lines of code to :
Code: Select all
|(^SwapChain{}+8) = |SwapChain%%
|(^Dev{}+8) = |Dev%%
|(^DevCon{}+8) = |DevCon%%
PRINT "SW ";SwapChain%%
PRINT "D ";Dev%%
PRINT "DC ";DevCon%%
PRINT SwapChain{}.QueryInterface%%,SwapChain{}.AddRef%%,SwapChain{}.Release%%,SwapChain{}.SetPrivateData%%, \
\ SwapChain{}.SetPrivateDataInterface%%,SwapChain{}.GetPrivateData%%,SwapChain{}.GetParent%%,SwapChain{}.GetDevice%%
SYS SwapChain.GetBuffer%%, SwapChain%%, NULL%, GUID_ID3D11Texture2D%%, ^pBackBuffer%% TO hRESULT%
PRINT hRESULT%
PRINT "pointer address BackBuffer ";^pBackBuffer%%
PRINT "pointer value BackBuffer ";pBackBuffer%%
SYS Dev.CreateRenderTargetView%%, Dev%%, pBackBuffer%%, NULL%%, ^BackBuffer%% TO hRESULT%
PRINT hRESULT%
PRINT "address BackBuffer ";^BackBuffer%%
PRINT "value BackBuffer ";BackBuffer%%
360 SYS |(|pBackBuffer%%+16), pBackBuffer%%
I have also made all the members of the swapchain,device and device context structures %% variables as these are all pointers(i think).
I cant see where I have gone wrong in the conversion from 32 to 64 bits. Could you please take a look and advise?