Win32 API 日本語リファレンス
ホームGraphics.Direct3D11 › D3D11_FUNCTION_DESC

D3D11_FUNCTION_DESC

構造体
サイズx64: 152 バイト / x86: 144 バイト

サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。

フィールド

フィールドサイズx64x86説明
VersionDWORD4+0+0シェーダーのバージョンです。
CreatorLPSTR8/4+8+4関数の作成元の名前です。
FlagsDWORD4+16+8ビット単位のOR演算によって組み合わせた D3DCOMPILE 定数 の組み合わせです。結果の値により、シェーダーのコンパイルと解析が指定されます。
ConstantBuffersDWORD4+20+12関数の定数バッファーの数です。
BoundResourcesDWORD4+24+16関数にバインドされているリソースの数です。
InstructionCountDWORD4+28+20関数に対して生成された命令の数です。
TempRegisterCountDWORD4+32+24関数が使用する一時レジスタの数です。
TempArrayCountDWORD4+36+28関数が使用する一時配列の数です。
DefCountDWORD4+40+32関数の定数定義 (def) の数です。
DclCountDWORD4+44+36関数の宣言 (入力 + 出力) の数です。
TextureNormalInstructionsDWORD4+48+40関数の、分類されていないテクスチャ命令の数です。
TextureLoadInstructionsDWORD4+52+44関数のテクスチャ読み込み命令の数です。
TextureCompInstructionsDWORD4+56+48関数のテクスチャ比較命令の数です。
TextureBiasInstructionsDWORD4+60+52関数のテクスチャバイアス命令の数です。
TextureGradientInstructionsDWORD4+64+56関数のテクスチャ勾配命令の数です。
FloatInstructionCountDWORD4+68+60関数が使用する浮動小数点演算命令の数です。
IntInstructionCountDWORD4+72+64関数が使用する符号付き整数演算命令の数です。
UintInstructionCountDWORD4+76+68関数が使用する符号なし整数演算命令の数です。
StaticFlowControlCountDWORD4+80+72関数が使用する静的フロー制御命令の数です。
DynamicFlowControlCountDWORD4+84+76関数が使用する動的フロー制御命令の数です。
MacroInstructionCountDWORD4+88+80関数が使用するマクロ命令の数です。
ArrayInstructionCountDWORD4+92+84関数が使用する配列命令の数です。
MovInstructionCountDWORD4+96+88関数が使用する mov 命令の数です。
MovcInstructionCountDWORD4+100+92関数が使用する movc 命令の数です。
ConversionInstructionCountDWORD4+104+96関数が使用する型変換命令の数です。
BitwiseInstructionCountDWORD4+108+100関数が使用するビット演算命令の数です。
MinFeatureLevelD3D_FEATURE_LEVEL4+112+104関数のバイトコードが対象とする最小の Direct3D 機能レベルを指定する D3D_FEATURE_LEVEL 型の値です。
RequiredFeatureFlagsULONGLONG8+120+1121 つ以上のシェーダー要件フラグの組み合わせを含む値です。各フラグはシェーダーの要件を指定します。既定値の 0 は、要件がないことを意味します。値の一覧については、ID3D11ShaderReflection::GetRequiresFlags を参照してください。
NameLPSTR8/4+128+120関数の名前です。
FunctionParameterCountINT4+136+124戻り値を除く、関数シグネチャ内の論理パラメーターの数です。
HasReturnBOOL4+140+128関数が値を返すかどうかを示します。TRUE は値を返すことを示します。それ以外の場合は FALSE (サブルーチンです) になります。
Has10Level9VertexShaderBOOL4+144+132Direct3D 10Level9 頂点シェーダーの BLOB があるかどうかを示します。TRUE は 10Level9 頂点シェーダーの BLOB があることを示します。それ以外の場合は FALSE です。
Has10Level9PixelShaderBOOL4+148+136Direct3D 10Level9 ピクセルシェーダーの BLOB があるかどうかを示します。TRUE は 10Level9 ピクセルシェーダーの BLOB があることを示します。それ以外の場合は FALSE です。

公式ドキュメント

関数を記述します。

出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)

各言語での定義

#include <windows.h>

// D3D11_FUNCTION_DESC  (x64 152 / x86 144 バイト)
typedef struct D3D11_FUNCTION_DESC {
    DWORD Version;
    LPSTR Creator;
    DWORD Flags;
    DWORD ConstantBuffers;
    DWORD BoundResources;
    DWORD InstructionCount;
    DWORD TempRegisterCount;
    DWORD TempArrayCount;
    DWORD DefCount;
    DWORD DclCount;
    DWORD TextureNormalInstructions;
    DWORD TextureLoadInstructions;
    DWORD TextureCompInstructions;
    DWORD TextureBiasInstructions;
    DWORD TextureGradientInstructions;
    DWORD FloatInstructionCount;
    DWORD IntInstructionCount;
    DWORD UintInstructionCount;
    DWORD StaticFlowControlCount;
    DWORD DynamicFlowControlCount;
    DWORD MacroInstructionCount;
    DWORD ArrayInstructionCount;
    DWORD MovInstructionCount;
    DWORD MovcInstructionCount;
    DWORD ConversionInstructionCount;
    DWORD BitwiseInstructionCount;
    D3D_FEATURE_LEVEL MinFeatureLevel;
    ULONGLONG RequiredFeatureFlags;
    LPSTR Name;
    INT FunctionParameterCount;
    BOOL HasReturn;
    BOOL Has10Level9VertexShader;
    BOOL Has10Level9PixelShader;
} D3D11_FUNCTION_DESC;
using System;
using System.Runtime.InteropServices;

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct D3D11_FUNCTION_DESC
{
    public uint Version;
    public IntPtr Creator;
    public uint Flags;
    public uint ConstantBuffers;
    public uint BoundResources;
    public uint InstructionCount;
    public uint TempRegisterCount;
    public uint TempArrayCount;
    public uint DefCount;
    public uint DclCount;
    public uint TextureNormalInstructions;
    public uint TextureLoadInstructions;
    public uint TextureCompInstructions;
    public uint TextureBiasInstructions;
    public uint TextureGradientInstructions;
    public uint FloatInstructionCount;
    public uint IntInstructionCount;
    public uint UintInstructionCount;
    public uint StaticFlowControlCount;
    public uint DynamicFlowControlCount;
    public uint MacroInstructionCount;
    public uint ArrayInstructionCount;
    public uint MovInstructionCount;
    public uint MovcInstructionCount;
    public uint ConversionInstructionCount;
    public uint BitwiseInstructionCount;
    public int MinFeatureLevel;
    public ulong RequiredFeatureFlags;
    public IntPtr Name;
    public int FunctionParameterCount;
    [MarshalAs(UnmanagedType.Bool)] public bool HasReturn;
    [MarshalAs(UnmanagedType.Bool)] public bool Has10Level9VertexShader;
    [MarshalAs(UnmanagedType.Bool)] public bool Has10Level9PixelShader;
}
Imports System.Runtime.InteropServices

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure D3D11_FUNCTION_DESC
    Public Version As UInteger
    Public Creator As IntPtr
    Public Flags As UInteger
    Public ConstantBuffers As UInteger
    Public BoundResources As UInteger
    Public InstructionCount As UInteger
    Public TempRegisterCount As UInteger
    Public TempArrayCount As UInteger
    Public DefCount As UInteger
    Public DclCount As UInteger
    Public TextureNormalInstructions As UInteger
    Public TextureLoadInstructions As UInteger
    Public TextureCompInstructions As UInteger
    Public TextureBiasInstructions As UInteger
    Public TextureGradientInstructions As UInteger
    Public FloatInstructionCount As UInteger
    Public IntInstructionCount As UInteger
    Public UintInstructionCount As UInteger
    Public StaticFlowControlCount As UInteger
    Public DynamicFlowControlCount As UInteger
    Public MacroInstructionCount As UInteger
    Public ArrayInstructionCount As UInteger
    Public MovInstructionCount As UInteger
    Public MovcInstructionCount As UInteger
    Public ConversionInstructionCount As UInteger
    Public BitwiseInstructionCount As UInteger
    Public MinFeatureLevel As Integer
    Public RequiredFeatureFlags As ULong
    Public Name As IntPtr
    Public FunctionParameterCount As Integer
    <MarshalAs(UnmanagedType.Bool)> Public HasReturn As Boolean
    <MarshalAs(UnmanagedType.Bool)> Public Has10Level9VertexShader As Boolean
    <MarshalAs(UnmanagedType.Bool)> Public Has10Level9PixelShader As Boolean
End Structure
import ctypes
from ctypes import wintypes

class D3D11_FUNCTION_DESC(ctypes.Structure):
    _fields_ = [
        ("Version", wintypes.DWORD),
        ("Creator", ctypes.c_void_p),
        ("Flags", wintypes.DWORD),
        ("ConstantBuffers", wintypes.DWORD),
        ("BoundResources", wintypes.DWORD),
        ("InstructionCount", wintypes.DWORD),
        ("TempRegisterCount", wintypes.DWORD),
        ("TempArrayCount", wintypes.DWORD),
        ("DefCount", wintypes.DWORD),
        ("DclCount", wintypes.DWORD),
        ("TextureNormalInstructions", wintypes.DWORD),
        ("TextureLoadInstructions", wintypes.DWORD),
        ("TextureCompInstructions", wintypes.DWORD),
        ("TextureBiasInstructions", wintypes.DWORD),
        ("TextureGradientInstructions", wintypes.DWORD),
        ("FloatInstructionCount", wintypes.DWORD),
        ("IntInstructionCount", wintypes.DWORD),
        ("UintInstructionCount", wintypes.DWORD),
        ("StaticFlowControlCount", wintypes.DWORD),
        ("DynamicFlowControlCount", wintypes.DWORD),
        ("MacroInstructionCount", wintypes.DWORD),
        ("ArrayInstructionCount", wintypes.DWORD),
        ("MovInstructionCount", wintypes.DWORD),
        ("MovcInstructionCount", wintypes.DWORD),
        ("ConversionInstructionCount", wintypes.DWORD),
        ("BitwiseInstructionCount", wintypes.DWORD),
        ("MinFeatureLevel", ctypes.c_int),
        ("RequiredFeatureFlags", ctypes.c_ulonglong),
        ("Name", ctypes.c_void_p),
        ("FunctionParameterCount", ctypes.c_int),
        ("HasReturn", wintypes.BOOL),
        ("Has10Level9VertexShader", wintypes.BOOL),
        ("Has10Level9PixelShader", wintypes.BOOL),
    ]
#[repr(C)]
pub struct D3D11_FUNCTION_DESC {
    pub Version: u32,
    pub Creator: *mut core::ffi::c_void,
    pub Flags: u32,
    pub ConstantBuffers: u32,
    pub BoundResources: u32,
    pub InstructionCount: u32,
    pub TempRegisterCount: u32,
    pub TempArrayCount: u32,
    pub DefCount: u32,
    pub DclCount: u32,
    pub TextureNormalInstructions: u32,
    pub TextureLoadInstructions: u32,
    pub TextureCompInstructions: u32,
    pub TextureBiasInstructions: u32,
    pub TextureGradientInstructions: u32,
    pub FloatInstructionCount: u32,
    pub IntInstructionCount: u32,
    pub UintInstructionCount: u32,
    pub StaticFlowControlCount: u32,
    pub DynamicFlowControlCount: u32,
    pub MacroInstructionCount: u32,
    pub ArrayInstructionCount: u32,
    pub MovInstructionCount: u32,
    pub MovcInstructionCount: u32,
    pub ConversionInstructionCount: u32,
    pub BitwiseInstructionCount: u32,
    pub MinFeatureLevel: i32,
    pub RequiredFeatureFlags: u64,
    pub Name: *mut core::ffi::c_void,
    pub FunctionParameterCount: i32,
    pub HasReturn: i32,
    pub Has10Level9VertexShader: i32,
    pub Has10Level9PixelShader: i32,
}
import "golang.org/x/sys/windows"

type D3D11_FUNCTION_DESC struct {
	Version uint32
	Creator uintptr
	Flags uint32
	ConstantBuffers uint32
	BoundResources uint32
	InstructionCount uint32
	TempRegisterCount uint32
	TempArrayCount uint32
	DefCount uint32
	DclCount uint32
	TextureNormalInstructions uint32
	TextureLoadInstructions uint32
	TextureCompInstructions uint32
	TextureBiasInstructions uint32
	TextureGradientInstructions uint32
	FloatInstructionCount uint32
	IntInstructionCount uint32
	UintInstructionCount uint32
	StaticFlowControlCount uint32
	DynamicFlowControlCount uint32
	MacroInstructionCount uint32
	ArrayInstructionCount uint32
	MovInstructionCount uint32
	MovcInstructionCount uint32
	ConversionInstructionCount uint32
	BitwiseInstructionCount uint32
	MinFeatureLevel int32
	RequiredFeatureFlags uint64
	Name uintptr
	FunctionParameterCount int32
	HasReturn int32
	Has10Level9VertexShader int32
	Has10Level9PixelShader int32
}
type
  D3D11_FUNCTION_DESC = record
    Version: DWORD;
    Creator: Pointer;
    Flags: DWORD;
    ConstantBuffers: DWORD;
    BoundResources: DWORD;
    InstructionCount: DWORD;
    TempRegisterCount: DWORD;
    TempArrayCount: DWORD;
    DefCount: DWORD;
    DclCount: DWORD;
    TextureNormalInstructions: DWORD;
    TextureLoadInstructions: DWORD;
    TextureCompInstructions: DWORD;
    TextureBiasInstructions: DWORD;
    TextureGradientInstructions: DWORD;
    FloatInstructionCount: DWORD;
    IntInstructionCount: DWORD;
    UintInstructionCount: DWORD;
    StaticFlowControlCount: DWORD;
    DynamicFlowControlCount: DWORD;
    MacroInstructionCount: DWORD;
    ArrayInstructionCount: DWORD;
    MovInstructionCount: DWORD;
    MovcInstructionCount: DWORD;
    ConversionInstructionCount: DWORD;
    BitwiseInstructionCount: DWORD;
    MinFeatureLevel: Integer;
    RequiredFeatureFlags: UInt64;
    Name: Pointer;
    FunctionParameterCount: Integer;
    HasReturn: BOOL;
    Has10Level9VertexShader: BOOL;
    Has10Level9PixelShader: BOOL;
  end;
const D3D11_FUNCTION_DESC = extern struct {
    Version: u32,
    Creator: ?*anyopaque,
    Flags: u32,
    ConstantBuffers: u32,
    BoundResources: u32,
    InstructionCount: u32,
    TempRegisterCount: u32,
    TempArrayCount: u32,
    DefCount: u32,
    DclCount: u32,
    TextureNormalInstructions: u32,
    TextureLoadInstructions: u32,
    TextureCompInstructions: u32,
    TextureBiasInstructions: u32,
    TextureGradientInstructions: u32,
    FloatInstructionCount: u32,
    IntInstructionCount: u32,
    UintInstructionCount: u32,
    StaticFlowControlCount: u32,
    DynamicFlowControlCount: u32,
    MacroInstructionCount: u32,
    ArrayInstructionCount: u32,
    MovInstructionCount: u32,
    MovcInstructionCount: u32,
    ConversionInstructionCount: u32,
    BitwiseInstructionCount: u32,
    MinFeatureLevel: i32,
    RequiredFeatureFlags: u64,
    Name: ?*anyopaque,
    FunctionParameterCount: i32,
    HasReturn: i32,
    Has10Level9VertexShader: i32,
    Has10Level9PixelShader: i32,
};
type
  D3D11_FUNCTION_DESC {.bycopy.} = object
    Version: uint32
    Creator: pointer
    Flags: uint32
    ConstantBuffers: uint32
    BoundResources: uint32
    InstructionCount: uint32
    TempRegisterCount: uint32
    TempArrayCount: uint32
    DefCount: uint32
    DclCount: uint32
    TextureNormalInstructions: uint32
    TextureLoadInstructions: uint32
    TextureCompInstructions: uint32
    TextureBiasInstructions: uint32
    TextureGradientInstructions: uint32
    FloatInstructionCount: uint32
    IntInstructionCount: uint32
    UintInstructionCount: uint32
    StaticFlowControlCount: uint32
    DynamicFlowControlCount: uint32
    MacroInstructionCount: uint32
    ArrayInstructionCount: uint32
    MovInstructionCount: uint32
    MovcInstructionCount: uint32
    ConversionInstructionCount: uint32
    BitwiseInstructionCount: uint32
    MinFeatureLevel: int32
    RequiredFeatureFlags: uint64
    Name: pointer
    FunctionParameterCount: int32
    HasReturn: int32
    Has10Level9VertexShader: int32
    Has10Level9PixelShader: int32
struct D3D11_FUNCTION_DESC
{
    uint Version;
    void* Creator;
    uint Flags;
    uint ConstantBuffers;
    uint BoundResources;
    uint InstructionCount;
    uint TempRegisterCount;
    uint TempArrayCount;
    uint DefCount;
    uint DclCount;
    uint TextureNormalInstructions;
    uint TextureLoadInstructions;
    uint TextureCompInstructions;
    uint TextureBiasInstructions;
    uint TextureGradientInstructions;
    uint FloatInstructionCount;
    uint IntInstructionCount;
    uint UintInstructionCount;
    uint StaticFlowControlCount;
    uint DynamicFlowControlCount;
    uint MacroInstructionCount;
    uint ArrayInstructionCount;
    uint MovInstructionCount;
    uint MovcInstructionCount;
    uint ConversionInstructionCount;
    uint BitwiseInstructionCount;
    int MinFeatureLevel;
    ulong RequiredFeatureFlags;
    void* Name;
    int FunctionParameterCount;
    int HasReturn;
    int Has10Level9VertexShader;
    int Has10Level9PixelShader;
}

HSP用 定義

HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。

; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x86 レイアウト)
; D3D11_FUNCTION_DESC サイズ: 144 バイト(x86)
dim st, 36    ; 4byte整数×36(構造体サイズ 144 / 4 切り上げ)
; Version : DWORD (+0, 4byte)  st.0 = 値  /  値 = st.0   (lpoke/lpeek も可)
; Creator : LPSTR (+4, 4byte)  st.1 = 値  /  値 = st.1   (lpoke/lpeek も可)
; Flags : DWORD (+8, 4byte)  st.2 = 値  /  値 = st.2   (lpoke/lpeek も可)
; ConstantBuffers : DWORD (+12, 4byte)  st.3 = 値  /  値 = st.3   (lpoke/lpeek も可)
; BoundResources : DWORD (+16, 4byte)  st.4 = 値  /  値 = st.4   (lpoke/lpeek も可)
; InstructionCount : DWORD (+20, 4byte)  st.5 = 値  /  値 = st.5   (lpoke/lpeek も可)
; TempRegisterCount : DWORD (+24, 4byte)  st.6 = 値  /  値 = st.6   (lpoke/lpeek も可)
; TempArrayCount : DWORD (+28, 4byte)  st.7 = 値  /  値 = st.7   (lpoke/lpeek も可)
; DefCount : DWORD (+32, 4byte)  st.8 = 値  /  値 = st.8   (lpoke/lpeek も可)
; DclCount : DWORD (+36, 4byte)  st.9 = 値  /  値 = st.9   (lpoke/lpeek も可)
; TextureNormalInstructions : DWORD (+40, 4byte)  st.10 = 値  /  値 = st.10   (lpoke/lpeek も可)
; TextureLoadInstructions : DWORD (+44, 4byte)  st.11 = 値  /  値 = st.11   (lpoke/lpeek も可)
; TextureCompInstructions : DWORD (+48, 4byte)  st.12 = 値  /  値 = st.12   (lpoke/lpeek も可)
; TextureBiasInstructions : DWORD (+52, 4byte)  st.13 = 値  /  値 = st.13   (lpoke/lpeek も可)
; TextureGradientInstructions : DWORD (+56, 4byte)  st.14 = 値  /  値 = st.14   (lpoke/lpeek も可)
; FloatInstructionCount : DWORD (+60, 4byte)  st.15 = 値  /  値 = st.15   (lpoke/lpeek も可)
; IntInstructionCount : DWORD (+64, 4byte)  st.16 = 値  /  値 = st.16   (lpoke/lpeek も可)
; UintInstructionCount : DWORD (+68, 4byte)  st.17 = 値  /  値 = st.17   (lpoke/lpeek も可)
; StaticFlowControlCount : DWORD (+72, 4byte)  st.18 = 値  /  値 = st.18   (lpoke/lpeek も可)
; DynamicFlowControlCount : DWORD (+76, 4byte)  st.19 = 値  /  値 = st.19   (lpoke/lpeek も可)
; MacroInstructionCount : DWORD (+80, 4byte)  st.20 = 値  /  値 = st.20   (lpoke/lpeek も可)
; ArrayInstructionCount : DWORD (+84, 4byte)  st.21 = 値  /  値 = st.21   (lpoke/lpeek も可)
; MovInstructionCount : DWORD (+88, 4byte)  st.22 = 値  /  値 = st.22   (lpoke/lpeek も可)
; MovcInstructionCount : DWORD (+92, 4byte)  st.23 = 値  /  値 = st.23   (lpoke/lpeek も可)
; ConversionInstructionCount : DWORD (+96, 4byte)  st.24 = 値  /  値 = st.24   (lpoke/lpeek も可)
; BitwiseInstructionCount : DWORD (+100, 4byte)  st.25 = 値  /  値 = st.25   (lpoke/lpeek も可)
; MinFeatureLevel : D3D_FEATURE_LEVEL (+104, 4byte)  st.26 = 値  /  値 = st.26   (lpoke/lpeek も可)
; RequiredFeatureFlags : ULONGLONG (+112, 8byte)  qpoke st,112,値 / qpeek(st,112)  ※IronHSPのみ。3.7/3.8は lpoke st,112,下位 : lpoke st,116,上位
; Name : LPSTR (+120, 4byte)  st.30 = 値  /  値 = st.30   (lpoke/lpeek も可)
; FunctionParameterCount : INT (+124, 4byte)  st.31 = 値  /  値 = st.31   (lpoke/lpeek も可)
; HasReturn : BOOL (+128, 4byte)  st.32 = 値  /  値 = st.32   (lpoke/lpeek も可)
; Has10Level9VertexShader : BOOL (+132, 4byte)  st.33 = 値  /  値 = st.33   (lpoke/lpeek も可)
; Has10Level9PixelShader : BOOL (+136, 4byte)  st.34 = 値  /  値 = st.34   (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; D3D11_FUNCTION_DESC サイズ: 152 バイト(x64)
dim st, 38    ; 4byte整数×38(構造体サイズ 152 / 4 切り上げ)
; Version : DWORD (+0, 4byte)  st.0 = 値  /  値 = st.0   (lpoke/lpeek も可)
; Creator : LPSTR (+8, 8byte)  qpoke st,8,値 / qpeek(st,8)  ※IronHSPのみ。3.7/3.8は lpoke st,8,下位 : lpoke st,12,上位
; Flags : DWORD (+16, 4byte)  st.4 = 値  /  値 = st.4   (lpoke/lpeek も可)
; ConstantBuffers : DWORD (+20, 4byte)  st.5 = 値  /  値 = st.5   (lpoke/lpeek も可)
; BoundResources : DWORD (+24, 4byte)  st.6 = 値  /  値 = st.6   (lpoke/lpeek も可)
; InstructionCount : DWORD (+28, 4byte)  st.7 = 値  /  値 = st.7   (lpoke/lpeek も可)
; TempRegisterCount : DWORD (+32, 4byte)  st.8 = 値  /  値 = st.8   (lpoke/lpeek も可)
; TempArrayCount : DWORD (+36, 4byte)  st.9 = 値  /  値 = st.9   (lpoke/lpeek も可)
; DefCount : DWORD (+40, 4byte)  st.10 = 値  /  値 = st.10   (lpoke/lpeek も可)
; DclCount : DWORD (+44, 4byte)  st.11 = 値  /  値 = st.11   (lpoke/lpeek も可)
; TextureNormalInstructions : DWORD (+48, 4byte)  st.12 = 値  /  値 = st.12   (lpoke/lpeek も可)
; TextureLoadInstructions : DWORD (+52, 4byte)  st.13 = 値  /  値 = st.13   (lpoke/lpeek も可)
; TextureCompInstructions : DWORD (+56, 4byte)  st.14 = 値  /  値 = st.14   (lpoke/lpeek も可)
; TextureBiasInstructions : DWORD (+60, 4byte)  st.15 = 値  /  値 = st.15   (lpoke/lpeek も可)
; TextureGradientInstructions : DWORD (+64, 4byte)  st.16 = 値  /  値 = st.16   (lpoke/lpeek も可)
; FloatInstructionCount : DWORD (+68, 4byte)  st.17 = 値  /  値 = st.17   (lpoke/lpeek も可)
; IntInstructionCount : DWORD (+72, 4byte)  st.18 = 値  /  値 = st.18   (lpoke/lpeek も可)
; UintInstructionCount : DWORD (+76, 4byte)  st.19 = 値  /  値 = st.19   (lpoke/lpeek も可)
; StaticFlowControlCount : DWORD (+80, 4byte)  st.20 = 値  /  値 = st.20   (lpoke/lpeek も可)
; DynamicFlowControlCount : DWORD (+84, 4byte)  st.21 = 値  /  値 = st.21   (lpoke/lpeek も可)
; MacroInstructionCount : DWORD (+88, 4byte)  st.22 = 値  /  値 = st.22   (lpoke/lpeek も可)
; ArrayInstructionCount : DWORD (+92, 4byte)  st.23 = 値  /  値 = st.23   (lpoke/lpeek も可)
; MovInstructionCount : DWORD (+96, 4byte)  st.24 = 値  /  値 = st.24   (lpoke/lpeek も可)
; MovcInstructionCount : DWORD (+100, 4byte)  st.25 = 値  /  値 = st.25   (lpoke/lpeek も可)
; ConversionInstructionCount : DWORD (+104, 4byte)  st.26 = 値  /  値 = st.26   (lpoke/lpeek も可)
; BitwiseInstructionCount : DWORD (+108, 4byte)  st.27 = 値  /  値 = st.27   (lpoke/lpeek も可)
; MinFeatureLevel : D3D_FEATURE_LEVEL (+112, 4byte)  st.28 = 値  /  値 = st.28   (lpoke/lpeek も可)
; RequiredFeatureFlags : ULONGLONG (+120, 8byte)  qpoke st,120,値 / qpeek(st,120)  ※IronHSPのみ。3.7/3.8は lpoke st,120,下位 : lpoke st,124,上位
; Name : LPSTR (+128, 8byte)  qpoke st,128,値 / qpeek(st,128)  ※IronHSPのみ。3.7/3.8は lpoke st,128,下位 : lpoke st,132,上位
; FunctionParameterCount : INT (+136, 4byte)  st.34 = 値  /  値 = st.34   (lpoke/lpeek も可)
; HasReturn : BOOL (+140, 4byte)  st.35 = 値  /  値 = st.35   (lpoke/lpeek も可)
; Has10Level9VertexShader : BOOL (+144, 4byte)  st.36 = 値  /  値 = st.36   (lpoke/lpeek も可)
; Has10Level9PixelShader : BOOL (+148, 4byte)  st.37 = 値  /  値 = st.37   (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。
; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global D3D11_FUNCTION_DESC
    #field int Version
    #field intptr Creator
    #field int Flags
    #field int ConstantBuffers
    #field int BoundResources
    #field int InstructionCount
    #field int TempRegisterCount
    #field int TempArrayCount
    #field int DefCount
    #field int DclCount
    #field int TextureNormalInstructions
    #field int TextureLoadInstructions
    #field int TextureCompInstructions
    #field int TextureBiasInstructions
    #field int TextureGradientInstructions
    #field int FloatInstructionCount
    #field int IntInstructionCount
    #field int UintInstructionCount
    #field int StaticFlowControlCount
    #field int DynamicFlowControlCount
    #field int MacroInstructionCount
    #field int ArrayInstructionCount
    #field int MovInstructionCount
    #field int MovcInstructionCount
    #field int ConversionInstructionCount
    #field int BitwiseInstructionCount
    #field int MinFeatureLevel
    #field int64 RequiredFeatureFlags
    #field intptr Name
    #field int FunctionParameterCount
    #field bool HasReturn
    #field bool Has10Level9VertexShader
    #field bool Has10Level9PixelShader
#endstruct

stdim st, D3D11_FUNCTION_DESC        ; NSTRUCT 変数を確保
st->Version = 100
mes "Version=" + st->Version