----------------------------------------
-- File : d3dx11async.ads --
-- Translator:Dongfeng.Gu,2018/10/26 --
-- Mail: 515639@qq.com --
-- Progress:100% --
----------------------------------------
with win32; use win32;
with win32.windef; use win32.windef;
with win32.rpcdce; use win32.rpcdce;
with win32.objbase; use win32.Objbase;
with win32.Wingdi;
with win32.Winerror;
with DXGI; use DXGI;
with d3d10; use d3d10;
with d3d10misc; use d3d10misc;
with d3dx10core; use d3dx10core;
with D3D10shader; use D3D10shader;
with D3D10effect; use D3D10effect;
with D3D11; use d3d11;
with D3DX11tex; use D3DX11tex;
with D3DX11core; use D3DX11core;
package D3DX11async is
type LPHRESULT is access all HRESULT;
function D3DX11CompileFromFileA(pSrcFile:LPCSTR;pDefines:LPCD3D10_SHADER_MACRO;pInclude:LPD3D10INCLUDE;pFunctionName:LPCSTR;pProfile:LPCSTR;Flags1:UINT;Flags2:UINT;pPump:LPID3DX11ThreadPump;ppShader:LPLPID3D10Blob;ppErrorMsgs:LPLPID3D10Blob;pHResult:LPHRESULT) return HRESULT with Import,Convention=>stdcall,external_name=>"D3DX11CompileFromFileA";
function D3DX11CompileFromFile(pSrcFile:LPCSTR;pDefines:LPCD3D10_SHADER_MACRO;pInclude:LPD3D10INCLUDE;pFunctionName:LPCSTR;pProfile:LPCSTR;Flags1:UINT;Flags2:UINT;pPump:LPID3DX11ThreadPump;ppShader:LPLPID3D10Blob;ppErrorMsgs:LPLPID3D10Blob;pHResult:LPHRESULT) return HRESULT with Import,Convention=>stdcall,external_name=>"D3DX11CompileFromFileA";
function D3DX11CompileFromFileW(pSrcFile:LPCWSTR;pDefines:LPCD3D10_SHADER_MACRO;pInclude:LPD3D10INCLUDE;pFunctionName:LPCSTR;pProfile:LPCSTR;Flags1:UINT;Flags2:UINT;pPump:LPID3DX11ThreadPump;ppShader:LPLPID3D10Blob;ppErrorMsgs:LPLPID3D10Blob;pHResult:LPHRESULT) return HRESULT with Import,Convention=>stdcall,external_name=>"D3DX11CompileFromFileW";
function D3DX11CompileFromResourceA(hSrcModule:HMODULE;pSrcResource:LPCSTR;pSrcFileName:LPCSTR;pDefines:LPCD3D10_SHADER_MACRO;pInclude:LPD3D10INCLUDE;pFunctionName:LPCSTR;pProfile:LPCSTR;Flags1:UINT;Flags2:UINT;pPump:LPID3DX11ThreadPump;ppShader:LPLPID3D10Blob;ppErrorMsgs:LPLPID3D10Blob;pHResult:LPHRESULT) return HRESULT with Import,Convention=>stdcall,external_name=>"D3DX11CompileFromResourceA";
function D3DX11CompileFromResource(hSrcModule:HMODULE;pSrcResource:LPCSTR;pSrcFileName:LPCSTR;pDefines:LPCD3D10_SHADER_MACRO;pInclude:LPD3D10INCLUDE;pFunctionName:LPCSTR;pProfile:LPCSTR;Flags1:UINT;Flags2:UINT;pPump:LPID3DX11ThreadPump;ppShader:LPLPID3D10Blob;ppErrorMsgs:LPLPID3D10Blob;pHResult:LPHRESULT) return HRESULT with Import,Convention=>stdcall,external_name=>"D3DX11CompileFromResourceA";
function D3DX11CompileFromResourceW(hSrcModule:HMODULE;pSrcResource:LPCWSTR;pSrcFileName:LPCWSTR;pDefines:LPCD3D10_SHADER_MACRO;pInclude:LPD3D10INCLUDE;pFunctionName:LPCSTR;pProfile:LPCSTR;Flags1:UINT;Flags2:UINT;pPump:LPID3DX11ThreadPump;ppShader:LPLPID3D10Blob;ppErrorMsgs:LPLPID3D10Blob;pHResult:LPHRESULT) return HRESULT with Import,Convention=>stdcall,external_name=>"D3DX11CompileFromResourceW";
function D3DX11CompileFromMemory(pSrcData:LPCSTR;SrcDataLen:SIZE_T;pFileName:LPCSTR;pDefines:LPCD3D10_SHADER_MACRO;pInclude:LPD3D10INCLUDE;pFunctionName:LPCSTR;pProfile:LPCSTR;Flags1:UINT;Flags2:UINT;pPump:LPID3DX11ThreadPump;ppShader:LPLPID3D10Blob;ppErrorMsgs:LPLPID3D10Blob;pHResult:LPHRESULT) return HRESULT with Import,Convention=>stdcall,external_name=>"D3DX11CompileFromMemory";
function D3DX11PreprocessShaderFromFileA(pFileName:LPCSTR;pDefines:LPCD3D10_SHADER_MACRO;pInclude:LPD3D10INCLUDE;pPump:LPID3DX11ThreadPump;ppShaderText:LPLPID3D10Blob;ppErrorMsgs:LPLPID3D10Blob;pHResult:LPHRESULT) return HRESULT with Import,Convention=>stdcall,external_name=>"D3DX11PreprocessShaderFromFileA";
function D3DX11PreprocessShaderFromFile(pFileName:LPCSTR;pDefines:LPCD3D10_SHADER_MACRO;pInclude:LPD3D10INCLUDE;pPump:LPID3DX11ThreadPump;ppShaderText:LPLPID3D10Blob;ppErrorMsgs:LPLPID3D10Blob;pHResult:LPHRESULT) return HRESULT with Import,Convention=>stdcall,external_name=>"D3DX11PreprocessShaderFromFileA";
function D3DX11PreprocessShaderFromFileW(pFileName:LPCWSTR;pDefines:LPCD3D10_SHADER_MACRO;pInclude:LPD3D10INCLUDE;pPump:LPID3DX11ThreadPump;ppShaderText:LPLPID3D10Blob;ppErrorMsgs:LPLPID3D10Blob;pHResult:LPHRESULT) return HRESULT with Import,Convention=>stdcall,external_name=>"D3DX11PreprocessShaderFromFileW";
function D3DX11PreprocessShaderFromMemory(pSrcData:LPCSTR;SrcDataSize:SIZE_T;pFileName:LPCSTR;pDefines:LPCD3D10_SHADER_MACRO;pInclude:LPD3D10INCLUDE;pPump:LPID3DX11ThreadPump;ppShaderText:LPLPID3D10Blob;ppErrorMsgs:LPLPID3D10Blob;pHResult:LPHRESULT) return HRESULT with Import,Convention=>stdcall,external_name=>"D3DX11PreprocessShaderFromMemory";
function D3DX11PreprocessShaderFromResourceA(hModule:Windef.HMODULE;pResourceName:LPCSTR;pSrcFileName:LPCSTR;pDefines:LPCD3D10_SHADER_MACRO;pInclude:LPD3D10INCLUDE;pPump:LPID3DX11ThreadPump;ppShaderText:LPLPID3D10Blob;ppErrorMsgs:LPLPID3D10Blob;pHResult:LPHRESULT) return HRESULT with Import,Convention=>stdcall,external_name=>"D3DX11PreprocessShaderFromResourceA";
function D3DX11PreprocessShaderFromResource(hModule:Windef.HMODULE;pResourceName:LPCSTR;pSrcFileName:LPCSTR;pDefines:LPCD3D10_SHADER_MACRO;pInclude:LPD3D10INCLUDE;pPump:LPID3DX11ThreadPump;ppShaderText:LPLPID3D10Blob;ppErrorMsgs:LPLPID3D10Blob;pHResult:LPHRESULT) return HRESULT with Import,Convention=>stdcall,external_name=>"D3DX11PreprocessShaderFromResourceA";
function D3DX11PreprocessShaderFromResourceW(hModule:Windef.HMODULE;pResourceName:LPCWSTR;pSrcFileName:LPCWSTR;pDefines:LPCD3D10_SHADER_MACRO;pInclude:LPD3D10INCLUDE;pPump:LPID3DX11ThreadPump;ppShaderText:LPLPID3D10Blob;ppErrorMsgs:LPLPID3D10Blob;pHResult:LPHRESULT) return HRESULT with Import,Convention=>stdcall,external_name=>"D3DX11PreprocessShaderFromResourceW";
function D3DX11CreateAsyncCompilerProcessor(pFileName:LPCSTR;pDefines:LPCD3D10_SHADER_MACRO;pInclude:LPD3D10INCLUDE;pFunctionName:LPCSTR;pProfile:LPCSTR;Flags1:UINT;Flags2:UINT;ppCompiledShader:LPLPID3D10Blob;ppErrorBuffer:LPLPID3D10Blob;ppProcessor:LPLPID3DX11DataProcessor) return HRESULT with Import,Convention=>stdcall,external_name=>"D3DX11CreateAsyncCompilerProcessor";
function D3DX11CreateAsyncShaderPreprocessProcessor(pFileName:LPCSTR;pDefines:LPCD3D10_SHADER_MACRO;pInclude:LPD3D10INCLUDE;ppShaderText:LPLPID3D10Blob;ppErrorBuffer:LPLPID3D10Blob;ppProcessor:LPLPID3DX11DataProcessor) return HRESULT with Import,Convention=>stdcall,external_name=>"D3DX11CreateAsyncShaderPreprocessProcessor";
function D3DX11CreateAsyncFileLoaderW(pFileName:LPCWSTR;ppDataLoader:LPLPID3DX11DataLoader) return HRESULT with Import,Convention=>stdcall,external_name=>"D3DX11CreateAsyncFileLoaderW";
function D3DX11CreateAsyncFileLoaderA(pFileName:LPCSTR;ppDataLoader:LPLPID3DX11DataLoader) return HRESULT with Import,Convention=>stdcall,external_name=>"D3DX11CreateAsyncFileLoaderA";
function D3DX11CreateAsyncFileLoader(pFileName:LPCSTR;ppDataLoader:LPLPID3DX11DataLoader) return HRESULT with Import,Convention=>stdcall,external_name=>"D3DX11CreateAsyncFileLoaderA";
function D3DX11CreateAsyncMemoryLoader(pData:LPCVOID;cbData:SIZE_T;ppDataLoader:LPLPID3DX11DataLoader) return HRESULT with Import,Convention=>stdcall,external_name=>"D3DX11CreateAsyncMemoryLoader";
function D3DX11CreateAsyncResourceLoaderW(hSrcModule:HMODULE;pSrcResource:LPCWSTR;ppDataLoader:LPLPID3DX11DataLoader) return HRESULT with Import,Convention=>stdcall,external_name=>"D3DX11CreateAsyncResourceLoaderW";
function D3DX11CreateAsyncResourceLoaderA(hSrcModule:HMODULE;pSrcResource:LPCSTR;ppDataLoader:LPLPID3DX11DataLoader) return HRESULT with Import,Convention=>stdcall,external_name=>"D3DX11CreateAsyncResourceLoaderA";
function D3DX11CreateAsyncResourceLoader(hSrcModule:HMODULE;pSrcResource:LPCSTR;ppDataLoader:LPLPID3DX11DataLoader) return HRESULT with Import,Convention=>stdcall,external_name=>"D3DX11CreateAsyncResourceLoaderA";
function D3DX11CreateAsyncTextureProcessor(pDevice:LPID3D11Device;pLoadInfo:LPD3DX11_IMAGE_LOAD_INFO;ppDataProcessor:LPLPID3DX11DataProcessor) return HRESULT with Import,Convention=>stdcall,external_name=>"D3DX11CreateAsyncTextureProcessor";
function D3DX11CreateAsyncTextureInfoProcessor(pImageInfo:LPD3DX11_IMAGE_INFO;ppDataProcessor:LPLPID3DX11DataProcessor) return HRESULT with Import,Convention=>stdcall,external_name=>"D3DX11CreateAsyncTextureInfoProcessor";
function D3DX11CreateAsyncShaderResourceViewProcessor(pDevice:LPID3D11Device;pLoadInfo:LPD3DX11_IMAGE_LOAD_INFO;ppDataProcessor:LPLPID3DX11DataProcessor) return HRESULT with Import,Convention=>stdcall,external_name=>"D3DX11CreateAsyncShaderResourceViewProcessor";
end D3DX11async;