ホーム › Graphics.Direct3D9 › D3DPERF_QueryRepeatFrame
D3DPERF_QueryRepeatFrame
関数プロファイラが現在のフレームの再描画を要求しているか問い合わせる。
シグネチャ
// d3d9.dll
#include <windows.h>
BOOL D3DPERF_QueryRepeatFrame(void);パラメーターなし。戻り値: BOOL
各言語での呼び出し定義
// d3d9.dll
#include <windows.h>
BOOL D3DPERF_QueryRepeatFrame(void);[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("d3d9.dll", ExactSpelling = true)]
static extern bool D3DPERF_QueryRepeatFrame();<DllImport("d3d9.dll", ExactSpelling:=True)>
Public Shared Function D3DPERF_QueryRepeatFrame() As Boolean
End FunctionDeclare PtrSafe Function D3DPERF_QueryRepeatFrame Lib "d3d9" () As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
D3DPERF_QueryRepeatFrame = ctypes.windll.d3d9.D3DPERF_QueryRepeatFrame
D3DPERF_QueryRepeatFrame.restype = wintypes.BOOL
D3DPERF_QueryRepeatFrame.argtypes = []require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('d3d9.dll')
D3DPERF_QueryRepeatFrame = Fiddle::Function.new(
lib['D3DPERF_QueryRepeatFrame'],
[],
Fiddle::TYPE_INT)#[link(name = "d3d9")]
extern "system" {
fn D3DPERF_QueryRepeatFrame() -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("d3d9.dll")]
public static extern bool D3DPERF_QueryRepeatFrame();
"@
$api = Add-Type -MemberDefinition $sig -Name 'd3d9_D3DPERF_QueryRepeatFrame' -Namespace Win32 -PassThru
# $api::D3DPERF_QueryRepeatFrame()#uselib "d3d9.dll"
#func global D3DPERF_QueryRepeatFrame "D3DPERF_QueryRepeatFrame"
; D3DPERF_QueryRepeatFrame ; 戻り値は stat
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "d3d9.dll"
#cfunc global D3DPERF_QueryRepeatFrame "D3DPERF_QueryRepeatFrame"
; res = D3DPERF_QueryRepeatFrame(); BOOL D3DPERF_QueryRepeatFrame()
#uselib "d3d9.dll"
#cfunc global D3DPERF_QueryRepeatFrame "D3DPERF_QueryRepeatFrame"
; res = D3DPERF_QueryRepeatFrame()import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
d3d9 = windows.NewLazySystemDLL("d3d9.dll")
procD3DPERF_QueryRepeatFrame = d3d9.NewProc("D3DPERF_QueryRepeatFrame")
)
r1, _, err := procD3DPERF_QueryRepeatFrame.Call()
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // BOOLfunction D3DPERF_QueryRepeatFrame: BOOL; stdcall;
external 'd3d9.dll' name 'D3DPERF_QueryRepeatFrame';result := DllCall("d3d9\D3DPERF_QueryRepeatFrame", "Int")●D3DPERF_QueryRepeatFrame() = DLL("d3d9.dll", "bool D3DPERF_QueryRepeatFrame()")
# 呼び出し: D3DPERF_QueryRepeatFrame()
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。