Esempio n. 1
0
        /// <summary>To be documented.</summary>
        public readonly unsafe int GetResourceBindingDesc(uint ResourceIndex, ShaderInputBindDesc *pDesc)
        {
            var @this = (ID3D12FunctionReflection *)Unsafe.AsPointer(ref Unsafe.AsRef(in this));
            int ret   = default;

            ret = ((delegate * unmanaged[Cdecl] < ID3D12FunctionReflection *, uint, ShaderInputBindDesc *, int >)LpVtbl[3])(@this, ResourceIndex, pDesc);
            return(ret);
        }
        /// <summary>To be documented.</summary>
        public readonly unsafe int GetResourceBindingDescByName(byte *Name, ShaderInputBindDesc *pDesc)
        {
            var @this = (ID3D12ShaderReflection *)Unsafe.AsPointer(ref Unsafe.AsRef(in this));
            int ret   = default;

            ret = ((delegate * unmanaged[Cdecl] < ID3D12ShaderReflection *, byte *, ShaderInputBindDesc *, int >)LpVtbl[11])(@this, Name, pDesc);
            return(ret);
        }
        /// <summary>To be documented.</summary>
        public readonly unsafe int GetResourceBindingDescByName(string Name, ShaderInputBindDesc *pDesc)
        {
            var @this   = (ID3D12ShaderReflection *)Unsafe.AsPointer(ref Unsafe.AsRef(in this));
            int ret     = default;
            var NamePtr = (byte *)Marshal.StringToHGlobalAnsi(Name);

            ret = ((delegate * unmanaged[Cdecl] < ID3D12ShaderReflection *, byte *, ShaderInputBindDesc *, int >)LpVtbl[11])(@this, NamePtr, pDesc);
            Marshal.FreeHGlobal((nint)NamePtr);
            return(ret);
        }
Esempio n. 4
0
        /// <summary>To be documented.</summary>
        public readonly unsafe int GetResourceBindingDescByName(ref byte Name, ShaderInputBindDesc *pDesc)
        {
            var @this = (ID3D11FunctionReflection *)Unsafe.AsPointer(ref Unsafe.AsRef(in this));
            int ret   = default;

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

            return(ret);
        }