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

DXGI_INFO_QUEUE_FILTER_DESC

構造体
サイズx64: 48 バイト / x86: 24 バイト

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

フィールド

フィールドサイズx64x86説明
NumCategoriesDWORD4+0+0pCategoryListに含まれるカテゴリ数。
pCategoryListDXGI_INFO_QUEUE_MESSAGE_CATEGORY*8/4+8+4フィルタ対象とするメッセージカテゴリの配列へのポインタ。
NumSeveritiesDWORD4+16+8pSeverityListに含まれる深刻度数。
pSeverityListDXGI_INFO_QUEUE_MESSAGE_SEVERITY*8/4+24+12フィルタ対象とする深刻度の配列へのポインタ。
NumIDsDWORD4+32+16pIDListに含まれるメッセージID数。
pIDListINT*8/4+40+20フィルタ対象とするメッセージIDの配列へのポインタ。

各言語での定義

#include <windows.h>

// DXGI_INFO_QUEUE_FILTER_DESC  (x64 48 / x86 24 バイト)
typedef struct DXGI_INFO_QUEUE_FILTER_DESC {
    DWORD NumCategories;
    DXGI_INFO_QUEUE_MESSAGE_CATEGORY* pCategoryList;
    DWORD NumSeverities;
    DXGI_INFO_QUEUE_MESSAGE_SEVERITY* pSeverityList;
    DWORD NumIDs;
    INT* pIDList;
} DXGI_INFO_QUEUE_FILTER_DESC;
using System;
using System.Runtime.InteropServices;

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct DXGI_INFO_QUEUE_FILTER_DESC
{
    public uint NumCategories;
    public IntPtr pCategoryList;
    public uint NumSeverities;
    public IntPtr pSeverityList;
    public uint NumIDs;
    public IntPtr pIDList;
}
Imports System.Runtime.InteropServices

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure DXGI_INFO_QUEUE_FILTER_DESC
    Public NumCategories As UInteger
    Public pCategoryList As IntPtr
    Public NumSeverities As UInteger
    Public pSeverityList As IntPtr
    Public NumIDs As UInteger
    Public pIDList As IntPtr
End Structure
import ctypes
from ctypes import wintypes

class DXGI_INFO_QUEUE_FILTER_DESC(ctypes.Structure):
    _fields_ = [
        ("NumCategories", wintypes.DWORD),
        ("pCategoryList", ctypes.c_void_p),
        ("NumSeverities", wintypes.DWORD),
        ("pSeverityList", ctypes.c_void_p),
        ("NumIDs", wintypes.DWORD),
        ("pIDList", ctypes.c_void_p),
    ]
#[repr(C)]
pub struct DXGI_INFO_QUEUE_FILTER_DESC {
    pub NumCategories: u32,
    pub pCategoryList: *mut core::ffi::c_void,
    pub NumSeverities: u32,
    pub pSeverityList: *mut core::ffi::c_void,
    pub NumIDs: u32,
    pub pIDList: *mut core::ffi::c_void,
}
import "golang.org/x/sys/windows"

type DXGI_INFO_QUEUE_FILTER_DESC struct {
	NumCategories uint32
	pCategoryList uintptr
	NumSeverities uint32
	pSeverityList uintptr
	NumIDs uint32
	pIDList uintptr
}
type
  DXGI_INFO_QUEUE_FILTER_DESC = record
    NumCategories: DWORD;
    pCategoryList: Pointer;
    NumSeverities: DWORD;
    pSeverityList: Pointer;
    NumIDs: DWORD;
    pIDList: Pointer;
  end;
const DXGI_INFO_QUEUE_FILTER_DESC = extern struct {
    NumCategories: u32,
    pCategoryList: ?*anyopaque,
    NumSeverities: u32,
    pSeverityList: ?*anyopaque,
    NumIDs: u32,
    pIDList: ?*anyopaque,
};
type
  DXGI_INFO_QUEUE_FILTER_DESC {.bycopy.} = object
    NumCategories: uint32
    pCategoryList: pointer
    NumSeverities: uint32
    pSeverityList: pointer
    NumIDs: uint32
    pIDList: pointer
struct DXGI_INFO_QUEUE_FILTER_DESC
{
    uint NumCategories;
    void* pCategoryList;
    uint NumSeverities;
    void* pSeverityList;
    uint NumIDs;
    void* pIDList;
}

HSP用 定義

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

; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x86 レイアウト)
; DXGI_INFO_QUEUE_FILTER_DESC サイズ: 24 バイト(x86)
dim st, 6    ; 4byte整数×6(構造体サイズ 24 / 4 切り上げ)
; NumCategories : DWORD (+0, 4byte)  st.0 = 値  /  値 = st.0   (lpoke/lpeek も可)
; pCategoryList : DXGI_INFO_QUEUE_MESSAGE_CATEGORY* (+4, 4byte)  st.1 = 値  /  値 = st.1   (lpoke/lpeek も可)
; NumSeverities : DWORD (+8, 4byte)  st.2 = 値  /  値 = st.2   (lpoke/lpeek も可)
; pSeverityList : DXGI_INFO_QUEUE_MESSAGE_SEVERITY* (+12, 4byte)  st.3 = 値  /  値 = st.3   (lpoke/lpeek も可)
; NumIDs : DWORD (+16, 4byte)  st.4 = 値  /  値 = st.4   (lpoke/lpeek も可)
; pIDList : INT* (+20, 4byte)  st.5 = 値  /  値 = st.5   (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; DXGI_INFO_QUEUE_FILTER_DESC サイズ: 48 バイト(x64)
dim st, 12    ; 4byte整数×12(構造体サイズ 48 / 4 切り上げ)
; NumCategories : DWORD (+0, 4byte)  st.0 = 値  /  値 = st.0   (lpoke/lpeek も可)
; pCategoryList : DXGI_INFO_QUEUE_MESSAGE_CATEGORY* (+8, 8byte)  qpoke st,8,値 / qpeek(st,8)  ※IronHSPのみ。3.7/3.8は lpoke st,8,下位 : lpoke st,12,上位
; NumSeverities : DWORD (+16, 4byte)  st.4 = 値  /  値 = st.4   (lpoke/lpeek も可)
; pSeverityList : DXGI_INFO_QUEUE_MESSAGE_SEVERITY* (+24, 8byte)  qpoke st,24,値 / qpeek(st,24)  ※IronHSPのみ。3.7/3.8は lpoke st,24,下位 : lpoke st,28,上位
; NumIDs : DWORD (+32, 4byte)  st.8 = 値  /  値 = st.8   (lpoke/lpeek も可)
; pIDList : INT* (+40, 8byte)  qpoke st,40,値 / qpeek(st,40)  ※IronHSPのみ。3.7/3.8は lpoke st,40,下位 : lpoke st,44,上位
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。
; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global DXGI_INFO_QUEUE_FILTER_DESC
    #field int NumCategories
    #field intptr pCategoryList
    #field int NumSeverities
    #field intptr pSeverityList
    #field int NumIDs
    #field intptr pIDList
#endstruct

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