Ticket #3: win32.patch

File win32.patch, 4.3 kB (added by SHOO, 2 years ago)
  • directx/d3d10.d

    old new  
    1212public import win32.directx.dxgitype; 
    1313public import win32.directx.dxgi; 
    1414public import win32.directx.d3d10misc; 
    15 public import win32.directx.d3d10shader; 
    16 public import win32.directx.d3d10effect; 
    1715 
    1816pragma(lib, "d3d10.lib"); 
    1917 
     
    11201118    void CopySubresourceRegion(ID3D10Resource pDstResource, UINT DstSubresource, UINT DstX, UINT DstY, UINT DstZ, ID3D10Resource pSrcResource, UINT SrcSubresource, D3D10_BOX* pSrcBox); 
    11211119    void CopyResource(ID3D10Resource pDstResource, ID3D10Resource pSrcResource); 
    11221120    void UpdateSubresource(ID3D10Resource pDstResource, UINT DstSubresource, D3D10_BOX* pDstBox, void* pSrcData, UINT SrcRowPitch, UINT SrcDepthPitch); 
    1123     void ClearRenderTargetView(ID3D10RenderTargetView pRenderTargetView, FLOAT[4] ColorRGBA); 
     1121    void ClearRenderTargetView(ID3D10RenderTargetView pRenderTargetView, FLOAT[4]* ColorRGBA); 
    11241122    void ClearDepthStencilView(ID3D10DepthStencilView pDepthStencilView, UINT ClearFlags, FLOAT Depth, UINT8 Stencil); 
    11251123    void GenerateMips(ID3D10ShaderResourceView pShaderResourceView); 
    11261124    void ResolveSubresource(ID3D10Resource pDstResource, UINT DstSubresource, ID3D10Resource pSrcResource, UINT SrcSubresource, DXGI_FORMAT Format); 
     
    12271225extern(C) const GUID IID_ID3D10Device               = {0x9B7E4C0F, 0x342C, 0x4106, [0xA1, 0x9F, 0x4F, 0x27, 0x04, 0xF6, 0x89, 0xF0]}; 
    12281226extern(C) const GUID IID_ID3D10Multithread          = {0x9B7E4E00, 0x342C, 0x4106, [0xA1, 0x9F, 0x4F, 0x27, 0x04, 0xF6, 0x89, 0xF0]}; 
    12291227 
     1228public import win32.directx.d3d10shader; 
     1229public import win32.directx.d3d10effect; 
  • directx/d3d10effect.d

    old new  
    1010private import win32.windows; 
    1111private import win32.directx.d3d10; 
    1212 
    13 // some forward references... 
    14 enum D3D10_SHADER_VARIABLE_CLASS; 
    15 enum D3D10_SHADER_VARIABLE_TYPE; 
    1613 
    1714enum D3D10_DEVICE_STATE_TYPES { 
    1815    D3D10_DST_SO_BUFFERS = 1, 
  • directx/d3d10shader.d

    old new  
    1010private import win32.windows; 
    1111private import win32.directx.d3d10; 
    1212 
    13 // some forward references... 
    14 enum D3D10_PRIMITIVE_TOPOLOGY; 
    15 enum D3D10_SRV_DIMENSION; 
    1613 
    1714uint D3D10_TX_VERSION(uint _Major, uint _Minor) { 
    1815    return ('T' << 24) | ('X' << 16) | (_Major << 8) | _Minor; 
  • makefile

    old new  
    2222######################################## 
    2323 
    2424win32.lib : $(SOURCES) 
    25     $(DC) $^ -lib -of$@ $(DFLAGS) 
     25    $(DC) -I.. $^ -lib -of$@ $(DFLAGS) 
    2626 
    2727clean : 
    2828    -del win32.lib 
  • rpcnsi.d

    old new  
    5151      uint*, ubyte**); 
    5252    RPC_STATUS RpcNsProfileEltInqDone(RPC_NS_HANDLE*); 
    5353    RPC_STATUS RpcNsEntryObjectInqNext(in RPC_NS_HANDLE, out UUID*); 
    54     RPC_STATUS RpcNsEntryObjectInqDone(inout RPC_NS_HANDLE*); 
     54    RPC_STATUS RpcNsEntryObjectInqDone(ref RPC_NS_HANDLE*); 
    5555    RPC_STATUS RpcNsEntryExpandNameA(uint, ubyte*, ubyte**); 
    5656    RPC_STATUS RpcNsMgmtBindingUnexportA(uint, ubyte*, RPC_IF_ID*, uint, 
    5757      UUID_VECTOR*); 
  • winldap.d

    old new  
    448448    BerValue* ldvlv_context; 
    449449    void*     ldvlv_extradata; 
    450450} 
    451  
     451private extern (C) int printf(in char* format, ...); 
    452452/* 
    453453 * Under Microsoft WinLDAP the function ldap_error is only stub. 
    454454 * This macro uses LDAP structure to get error string and pass it to the user. 
  • winsock2.d

    old new  
    133133        cmp(tvp.tv_usec, uvp.tv_usec); 
    134134}+/ 
    135135 
    136 void timerclear(inout TIMEVAL tvp) { 
     136void timerclear(ref TIMEVAL tvp) { 
    137137    tvp.tv_sec = tvp.tv_usec = 0; 
    138138} 
    139139