/// <summary>To be documented.</summary>
        public readonly unsafe ID3D11ShaderReflectionVariable *GetVariableByIndex(uint Index)
        {
            var @this = (ID3D11ShaderReflectionConstantBuffer *)Unsafe.AsPointer(ref Unsafe.AsRef(in this));
            ID3D11ShaderReflectionVariable *ret = default;

            ret = ((delegate * unmanaged[Cdecl] < ID3D11ShaderReflectionConstantBuffer *, uint, ID3D11ShaderReflectionVariable * >)LpVtbl[1])(@this, Index);
            return(ret);
        }
        /// <summary>To be documented.</summary>
        public readonly unsafe ID3D11ShaderReflectionVariable *GetVariableByName(byte *Name)
        {
            var @this = (ID3D11ShaderReflectionConstantBuffer *)Unsafe.AsPointer(ref Unsafe.AsRef(in this));
            ID3D11ShaderReflectionVariable *ret = default;

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

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

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

            return(ret);
        }