コード例 #1
0
 public static extern int D3DDisassemble11Trace([NativeTypeName("LPCVOID")] void *pSrcData, [NativeTypeName("SIZE_T")] nuint SrcDataSize, [NativeTypeName("ID3D11ShaderTrace *")] ID3D11ShaderTrace *pTrace, [NativeTypeName("UINT")] uint StartStep, [NativeTypeName("UINT")] uint NumSteps, [NativeTypeName("UINT")] uint Flags, [NativeTypeName("struct ID3D10Blob **")] ID3DBlob **ppDisassembly);
コード例 #2
0
        /// <summary>To be documented.</summary>
        public readonly unsafe int CreateShaderTrace(ref Silk.NET.Core.Native.IUnknown pShader, ref ShaderTraceDesc pTraceDesc, ref ID3D11ShaderTrace *ppShaderTrace)
        {
            var @this = (ID3D11ShaderTraceFactory *)Unsafe.AsPointer(ref Unsafe.AsRef(in this));
            int ret   = default;

            fixed(Silk.NET.Core.Native.IUnknown *pShaderPtr = &pShader)
            {
                fixed(ShaderTraceDesc *pTraceDescPtr = &pTraceDesc)
                {
                    fixed(ID3D11ShaderTrace **ppShaderTracePtr = &ppShaderTrace)
                    {
                        ret = ((delegate * unmanaged[Cdecl] < ID3D11ShaderTraceFactory *, Silk.NET.Core.Native.IUnknown *, ShaderTraceDesc *, ID3D11ShaderTrace **, int >)LpVtbl[3])(@this, pShaderPtr, pTraceDescPtr, ppShaderTracePtr);
                    }
                }
            }

            return(ret);
        }