示例#1
0
        /// <summary>To be documented.</summary>
        public readonly unsafe int GetResourceBindingDescByName(byte *Name, ref ShaderInputBindDesc pDesc)
        {
            var @this = (ID3D11FunctionReflection *)Unsafe.AsPointer(ref Unsafe.AsRef(in this));
            int ret   = default;

            fixed(ShaderInputBindDesc *pDescPtr = &pDesc)
            {
                ret = ((delegate * unmanaged[Cdecl] < ID3D11FunctionReflection *, byte *, ShaderInputBindDesc *, int >)LpVtbl[5])(@this, Name, pDescPtr);
            }

            return(ret);
        }
示例#2
0
        /// <summary>To be documented.</summary>
        public readonly int GetResourceBindingDesc(uint ResourceIndex, ref ShaderInputBindDesc pDesc)
        {
            var @this = (ID3D11FunctionReflection *)Unsafe.AsPointer(ref Unsafe.AsRef(in this));
            int ret   = default;

            fixed(ShaderInputBindDesc *pDescPtr = &pDesc)
            {
                ret = ((delegate * unmanaged[Cdecl] < ID3D11FunctionReflection *, uint, ShaderInputBindDesc *, int >)LpVtbl[3])(@this, ResourceIndex, pDescPtr);
            }

            return(ret);
        }
示例#3
0
        /// <summary>To be documented.</summary>
        public readonly int GetResourceBindingDescByName(string Name, ref ShaderInputBindDesc pDesc)
        {
            var @this   = (ID3D11FunctionReflection *)Unsafe.AsPointer(ref Unsafe.AsRef(in this));
            int ret     = default;
            var NamePtr = (byte *)Marshal.StringToHGlobalAnsi(Name);

            fixed(ShaderInputBindDesc *pDescPtr = &pDesc)
            {
                ret = ((delegate * unmanaged[Cdecl] < ID3D11FunctionReflection *, byte *, ShaderInputBindDesc *, int >)LpVtbl[5])(@this, NamePtr, pDescPtr);
            }

            Marshal.FreeHGlobal((nint)NamePtr);
            return(ret);
        }