ホーム › Graphics.Direct3D12 › D3D12_FUNCTION_DESC
D3D12_FUNCTION_DESC
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| Version | DWORD | 4 | +0 | +0 | 関数のシェーダバージョンとタイプをエンコードした値。 |
| Creator | LPSTR | 8/4 | +8 | +4 | 関数をコンパイルしたコンパイラ名(NULL終端文字列)。 |
| Flags | DWORD | 4 | +16 | +8 | コンパイル時のフラグ群。 |
| ConstantBuffers | DWORD | 4 | +20 | +12 | 関数が使用する定数バッファ数。 |
| BoundResources | DWORD | 4 | +24 | +16 | バインドされたリソースの数。 |
| InstructionCount | DWORD | 4 | +28 | +20 | 命令の総数。 |
| TempRegisterCount | DWORD | 4 | +32 | +24 | 使用された一時レジスタ数。 |
| TempArrayCount | DWORD | 4 | +36 | +28 | 使用された一時配列数。 |
| DefCount | DWORD | 4 | +40 | +32 | 定数定義(def)の数。 |
| DclCount | DWORD | 4 | +44 | +36 | 宣言(dcl)の数。 |
| TextureNormalInstructions | DWORD | 4 | +48 | +40 | 通常テクスチャ命令の数。 |
| TextureLoadInstructions | DWORD | 4 | +52 | +44 | テクスチャロード命令の数。 |
| TextureCompInstructions | DWORD | 4 | +56 | +48 | テクスチャ比較命令の数。 |
| TextureBiasInstructions | DWORD | 4 | +60 | +52 | テクスチャバイアス命令の数。 |
| TextureGradientInstructions | DWORD | 4 | +64 | +56 | テクスチャ勾配命令の数。 |
| FloatInstructionCount | DWORD | 4 | +68 | +60 | 浮動小数点演算命令の数。 |
| IntInstructionCount | DWORD | 4 | +72 | +64 | 符号付き整数演算命令の数。 |
| UintInstructionCount | DWORD | 4 | +76 | +68 | 符号なし整数演算命令の数。 |
| StaticFlowControlCount | DWORD | 4 | +80 | +72 | 静的フロー制御命令の数。 |
| DynamicFlowControlCount | DWORD | 4 | +84 | +76 | 動的フロー制御命令の数。 |
| MacroInstructionCount | DWORD | 4 | +88 | +80 | マクロ命令の数。 |
| ArrayInstructionCount | DWORD | 4 | +92 | +84 | 配列命令の数。 |
| MovInstructionCount | DWORD | 4 | +96 | +88 | mov命令の数。 |
| MovcInstructionCount | DWORD | 4 | +100 | +92 | movc(条件付きmov)命令の数。 |
| ConversionInstructionCount | DWORD | 4 | +104 | +96 | 型変換命令の数。 |
| BitwiseInstructionCount | DWORD | 4 | +108 | +100 | ビット演算命令の数。 |
| MinFeatureLevel | D3D_FEATURE_LEVEL | 4 | +112 | +104 | 関数が必要とする最小機能レベルを示すD3D_FEATURE_LEVEL。 |
| RequiredFeatureFlags | ULONGLONG | 8 | +120 | +112 | 関数が必要とする機能フラグのビット集合(64ビット)。 |
| Name | LPSTR | 8/4 | +128 | +120 | 関数名を表すNULL終端ANSI文字列。 |
| FunctionParameterCount | INT | 4 | +136 | +124 | 関数の引数の数。 |
| HasReturn | BOOL | 4 | +140 | +128 | 関数が戻り値を持つかを示すBOOL(TRUE/FALSE)。 |
| Has10Level9VertexShader | BOOL | 4 | +144 | +132 | 10Level9頂点シェーダを含むかを示すBOOL。 |
| Has10Level9PixelShader | BOOL | 4 | +148 | +136 | 10Level9ピクセルシェーダを含むかを示すBOOL。 |
各言語での定義
#include <windows.h>
// D3D12_FUNCTION_DESC (x64 152 / x86 144 バイト)
typedef struct D3D12_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;
} D3D12_FUNCTION_DESC;using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct D3D12_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 D3D12_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 Structureimport ctypes
from ctypes import wintypes
class D3D12_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 D3D12_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 D3D12_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
D3D12_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 D3D12_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
D3D12_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: int32struct D3D12_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 レイアウト)
; D3D12_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 レイアウト)
; D3D12_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 D3D12_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, D3D12_FUNCTION_DESC ; NSTRUCT 変数を確保
st->Version = 100
mes "Version=" + st->Version