DirectPython constants module. Most constants are directly from SDK-headers.
Certain prefixes are usually removed, for example D3D11_BLEND_ZERO in C-code
would be BLEND_ZERO (the D3D11_-prefix is removed) in DirectPython.
All .fx-files use the same notation.
This module is usually imported with from d3d11 import *, but you don’t have
to if you don’t want to clutter your namespace. You can use import d3d11c
and access them by their module name (d3d11c.BLEND_ZERO).
Constants
Direct3D 11 constants
Primitive topology
MSDN: http://msdn.microsoft.com/en-gb/library/ff476189%28v=VS.85%29.aspx
-
PRIMITIVE_TOPOLOGY_UNDEFINED
-
PRIMITIVE_TOPOLOGY_POINTLIST
-
PRIMITIVE_TOPOLOGY_LINELIST
-
PRIMITIVE_TOPOLOGY_LINESTRIP
-
PRIMITIVE_TOPOLOGY_TRIANGLELIST
-
PRIMITIVE_TOPOLOGY_TRIANGLESTRIP
-
PRIMITIVE_TOPOLOGY_LINELIST_ADJ
-
PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ
-
PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ
-
PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ
-
PRIMITIVE_TOPOLOGY_1_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_2_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_3_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_4_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_5_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_6_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_7_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_8_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_9_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_10_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_11_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_12_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_13_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_14_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_15_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_16_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_17_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_18_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_19_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_20_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_21_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_22_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_23_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_24_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_25_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_26_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_27_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_28_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_29_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_30_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_31_CONTROL_POINT_PATCHLIST
-
PRIMITIVE_TOPOLOGY_32_CONTROL_POINT_PATCHLIST
Feature level
-
FEATURE_LEVEL_9_1
-
FEATURE_LEVEL_9_2
-
FEATURE_LEVEL_9_3
-
FEATURE_LEVEL_10_0
-
FEATURE_LEVEL_10_1
-
FEATURE_LEVEL_11_0
Resource misc flags
MSDN: http://msdn.microsoft.com/en-gb/library/ff476203%28v=VS.85%29.aspx
-
RESOURCE_MISC_GENERATE_MIPS
-
RESOURCE_MISC_SHARED
-
RESOURCE_MISC_TEXTURECUBE
-
RESOURCE_MISC_DRAWINDIRECT_ARGS
-
RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS
-
RESOURCE_MISC_BUFFER_STRUCTURED
-
RESOURCE_MISC_RESOURCE_CLAMP
-
RESOURCE_MISC_SHARED_KEYEDMUTEX
-
RESOURCE_MISC_GDI_COMPATIBLE
Filter
-
FILTER_MIN_MAG_MIP_POINT
-
FILTER_MIN_MAG_POINT_MIP_LINEAR
-
FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT
-
FILTER_MIN_POINT_MAG_MIP_LINEAR
-
FILTER_MIN_LINEAR_MAG_MIP_POINT
-
FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR
-
FILTER_MIN_MAG_LINEAR_MIP_POINT
-
FILTER_MIN_MAG_MIP_LINEAR
-
FILTER_ANISOTROPIC
-
FILTER_COMPARISON_MIN_MAG_MIP_POINT
-
FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR
-
FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT
-
FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR
-
FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT
-
FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR
-
FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT
-
FILTER_COMPARISON_MIN_MAG_MIP_LINEAR
-
FILTER_COMPARISON_ANISOTROPIC
Image filter
-
IMAGE_FILTER_NONE
-
IMAGE_FILTER_POINT
-
IMAGE_FILTER_LINEAR
-
IMAGE_FILTER_TRIANGLE
-
IMAGE_FILTER_BOX
-
IMAGE_FILTER_MIRROR_U
-
IMAGE_FILTER_MIRROR_V
-
IMAGE_FILTER_MIRROR_W
-
IMAGE_FILTER_MIRROR
-
IMAGE_FILTER_DITHER
-
IMAGE_FILTER_DITHER_DIFFUSION
-
IMAGE_FILTER_SRGB_IN
-
IMAGE_FILTER_SRGB_OUT
-
IMAGE_FILTER_SRGB
Blend
-
BLEND_ZERO
-
BLEND_ONE
-
BLEND_SRC_COLOR
-
BLEND_INV_SRC_COLOR
-
BLEND_SRC_ALPHA
-
BLEND_INV_SRC_ALPHA
-
BLEND_DEST_ALPHA
-
BLEND_INV_DEST_ALPHA
-
BLEND_DEST_COLOR
-
BLEND_INV_DEST_COLOR
-
BLEND_SRC_ALPHA_SAT
-
BLEND_BLEND_FACTOR
-
BLEND_INV_BLEND_FACTOR
-
BLEND_SRC1_COLOR
-
BLEND_INV_SRC1_COLOR
-
BLEND_SRC1_ALPHA
-
BLEND_INV_SRC1_ALPHA
Blending operation
-
BLEND_OP_ADD
-
BLEND_OP_SUBTRACT
-
BLEND_OP_REV_SUBTRACT
-
BLEND_OP_MIN
-
BLEND_OP_MAX
Color write
-
COLOR_WRITE_ENABLE_RED
-
COLOR_WRITE_ENABLE_GREEN
-
COLOR_WRITE_ENABLE_BLUE
-
COLOR_WRITE_ENABLE_ALPHA
-
COLOR_WRITE_ENABLE_ALL
Texture addressing
-
TEXTURE_ADDRESS_WRAP
-
TEXTURE_ADDRESS_MIRROR
-
TEXTURE_ADDRESS_CLAMP
-
TEXTURE_ADDRESS_BORDER
-
TEXTURE_ADDRESS_MIRROR_ONCE
Comparison functions
-
COMPARISON_NEVER
-
COMPARISON_LESS
-
COMPARISON_EQUAL
-
COMPARISON_LESS_EQUAL
-
COMPARISON_GREATER
-
COMPARISON_NOT_EQUAL
-
COMPARISON_GREATER_EQUAL
-
COMPARISON_ALWAYS
Stencil operation
-
STENCIL_OP_KEEP
-
STENCIL_OP_ZERO
-
STENCIL_OP_REPLACE
-
STENCIL_OP_INCR_SAT
-
STENCIL_OP_DECR_SAT
-
STENCIL_OP_INVERT
-
STENCIL_OP_INCR
-
STENCIL_OP_DECR
Depth write mask
-
DEPTH_WRITE_MASK_ZERO
-
DEPTH_WRITE_MASK_ALL
Fill mode
-
FILL_WIREFRAME
-
FILL_SOLID
Cull mode
-
CULL_NONE
-
CULL_FRONT
-
CULL_BACK
Windows constants
Show window
MSDN: http://msdn.microsoft.com/en-us/library/ms633548%28VS.85%29.aspx
-
SW_HIDE
-
SW_SHOWNORMAL
-
SW_NORMAL
-
SW_SHOWMINIMIZED
-
SW_SHOWMAXIMIZED
-
SW_MAXIMIZE
-
SW_SHOWNOACTIVATE
-
SW_SHOW
-
SW_MINIMIZE
-
SW_SHOWMINNOACTIVE
-
SW_SHOWNA
-
SW_RESTORE
-
SW_SHOWDEFAULT
-
SW_FORCEMINIMIZE
-
SW_MAX
-
SW_PARENTCLOSING
-
SW_OTHERZOOM
-
SW_PARENTOPENING
-
SW_OTHERUNZOOM
Virtual keys
-
VK_LBUTTON
-
VK_RBUTTON
-
VK_CANCEL
-
VK_MBUTTON
-
VK_XBUTTON1
-
VK_XBUTTON2
-
VK_BACK
-
VK_TAB
-
VK_CLEAR
-
VK_RETURN
-
VK_SHIFT
-
VK_CONTROL
-
VK_PAUSE
-
VK_CAPITAL
-
VK_KANA
-
VK_HANGEUL
-
VK_HANGUL
-
VK_JUNJA
-
VK_FINAL
-
VK_HANJA
-
VK_KANJI
-
VK_ESCAPE
-
VK_CONVERT
-
VK_NONCONVERT
-
VK_ACCEPT
-
VK_MODECHANGE
-
VK_SPACE
-
VK_PRIOR
-
VK_NEXT
-
VK_END
-
VK_HOME
-
VK_LEFT
-
VK_UP
-
VK_RIGHT
-
VK_DOWN
-
VK_SELECT
-
VK_PRINT
-
VK_EXECUTE
-
VK_SNAPSHOT
-
VK_INSERT
-
VK_DELETE
-
VK_HELP
-
VK_LWIN
-
VK_RWIN
-
VK_APPS
-
VK_SLEEP
-
VK_NUMPAD0
-
VK_NUMPAD1
-
VK_NUMPAD2
-
VK_NUMPAD3
-
VK_NUMPAD4
-
VK_NUMPAD5
-
VK_NUMPAD6
-
VK_NUMPAD7
-
VK_NUMPAD8
-
VK_NUMPAD9
-
VK_MULTIPLY
-
VK_ADD
-
VK_SEPARATOR
-
VK_SUBTRACT
-
VK_DECIMAL
-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L
-
VK_OEM_ATTN
-
VK_OEM_FINISH
-
VK_OEM_COPY
-
VK_OEM_AUTO
-
VK_OEM_ENLW
-
VK_OEM_BACKTAB
-
VK_ATTN
-
VK_CRSEL
-
VK_EXSEL
-
VK_EREOF
-
VK_PLAY
-
VK_ZOOM
-
VK_NONAME
-
VK_PA1
-
VK_OEM_CLEAR
Window messages
-
WM_NULL
-
WM_CREATE
-
WM_DESTROY
-
WM_MOVE
-
WM_SIZE
-
WM_ACTIVATE
-
WM_SETFOCUS
-
WM_KILLFOCUS
-
WM_ENABLE
-
WM_SETREDRAW
-
WM_SETTEXT
-
WM_GETTEXT
-
WM_GETTEXTLENGTH
-
WM_PAINT
-
WM_CLOSE
-
WM_QUERYENDSESSION
-
WM_QUERYOPEN
-
WM_ENDSESSION
-
WM_QUIT
-
WM_ERASEBKGND
-
WM_SYSCOLORCHANGE
-
WM_SHOWWINDOW
-
WM_WININICHANGE
-
WM_SETTINGCHANGE
-
WM_DEVMODECHANGE
-
WM_ACTIVATEAPP
-
WM_FONTCHANGE
-
WM_TIMECHANGE
-
WM_CANCELMODE
-
WM_SETCURSOR
-
WM_MOUSEACTIVATE
-
WM_CHILDACTIVATE
-
WM_QUEUESYNC
-
WM_GETMINMAXINFO
-
WM_PAINTICON
-
WM_ICONERASEBKGND
-
WM_NEXTDLGCTL
-
WM_SPOOLERSTATUS
-
WM_DRAWITEM
-
WM_MEASUREITEM
-
WM_DELETEITEM
-
WM_VKEYTOITEM
-
WM_CHARTOITEM
-
WM_SETFONT
-
WM_GETFONT
-
WM_SETHOTKEY
-
WM_GETHOTKEY
-
WM_QUERYDRAGICON
-
WM_COMPAREITEM
-
WM_GETOBJECT
-
WM_COMPACTING
-
WM_COMMNOTIFY
-
WM_WINDOWPOSCHANGING
-
WM_WINDOWPOSCHANGED
-
WM_POWER
-
WM_COPYDATA
-
WM_CANCELJOURNAL
-
WM_NOTIFY
-
WM_INPUTLANGCHANGEREQUEST
-
WM_INPUTLANGCHANGE
-
WM_TCARD
-
WM_HELP
-
WM_USERCHANGED
-
WM_NOTIFYFORMAT
-
WM_STYLECHANGING
-
WM_STYLECHANGED
-
WM_DISPLAYCHANGE
-
WM_GETICON
-
WM_SETICON
-
WM_NCCREATE
-
WM_NCDESTROY
-
WM_NCCALCSIZE
-
WM_NCHITTEST
-
WM_NCPAINT
-
WM_NCACTIVATE
-
WM_GETDLGCODE
-
WM_SYNCPAINT
-
WM_NCMOUSEMOVE
-
WM_NCLBUTTONDOWN
-
WM_NCLBUTTONUP
-
WM_NCLBUTTONDBLCLK
-
WM_NCRBUTTONDOWN
-
WM_NCRBUTTONUP
-
WM_NCRBUTTONDBLCLK
-
WM_NCMBUTTONDOWN
-
WM_NCMBUTTONUP
-
WM_NCMBUTTONDBLCLK
-
WM_NCXBUTTONDOWN
-
WM_NCXBUTTONUP
-
WM_NCXBUTTONDBLCLK
-
WM_INPUT_DEVICE_CHANGE
-
WM_INPUT
-
WM_KEYFIRST
-
WM_KEYDOWN
-
WM_KEYUP
-
WM_CHAR
-
WM_DEADCHAR
-
WM_SYSKEYDOWN
-
WM_SYSKEYUP
-
WM_SYSCHAR
-
WM_SYSDEADCHAR
-
WM_UNICHAR
-
WM_KEYLAST
-
WM_IME_STARTCOMPOSITION
-
WM_IME_ENDCOMPOSITION
-
WM_IME_COMPOSITION
-
WM_IME_KEYLAST
-
WM_INITDIALOG
-
WM_COMMAND
-
WM_SYSCOMMAND
-
WM_TIMER
-
WM_HSCROLL
-
WM_VSCROLL
-
WM_ENTERIDLE
-
WM_MENUCOMMAND
-
WM_CHANGEUISTATE
-
WM_UPDATEUISTATE
-
WM_QUERYUISTATE
-
WM_CTLCOLORMSGBOX
-
WM_CTLCOLOREDIT
-
WM_CTLCOLORLISTBOX
-
WM_CTLCOLORBTN
-
WM_CTLCOLORDLG
-
WM_CTLCOLORSCROLLBAR
-
WM_CTLCOLORSTATIC
-
WM_MOUSEFIRST
-
WM_MOUSEMOVE
-
WM_LBUTTONDOWN
-
WM_LBUTTONUP
-
WM_LBUTTONDBLCLK
-
WM_RBUTTONDOWN
-
WM_RBUTTONUP
-
WM_RBUTTONDBLCLK
-
WM_MBUTTONDOWN
-
WM_MBUTTONUP
-
WM_MBUTTONDBLCLK
-
WM_MOUSEWHEEL
-
WM_XBUTTONDOWN
-
WM_XBUTTONUP
-
WM_XBUTTONDBLCLK
-
WM_MOUSEHWHEEL
-
WM_MOUSELAST
-
WM_PARENTNOTIFY
-
WM_SIZING
-
WM_CAPTURECHANGED
-
WM_MOVING
-
WM_POWERBROADCAST
-
WM_DEVICECHANGE
-
WM_MDICREATE
-
WM_MDIDESTROY
-
WM_MDIACTIVATE
-
WM_MDIRESTORE
-
WM_MDINEXT
-
WM_MDIMAXIMIZE
-
WM_MDITILE
-
WM_MDICASCADE
-
WM_MDIICONARRANGE
-
WM_MDIGETACTIVE
-
WM_ENTERSIZEMOVE
-
WM_EXITSIZEMOVE
-
WM_DROPFILES
-
WM_IME_SETCONTEXT
-
WM_IME_NOTIFY
-
WM_IME_CONTROL
-
WM_IME_COMPOSITIONFULL
-
WM_IME_SELECT
-
WM_IME_CHAR
-
WM_IME_REQUEST
-
WM_IME_KEYDOWN
-
WM_IME_KEYUP
-
WM_MOUSEHOVER
-
WM_MOUSELEAVE
-
WM_NCMOUSEHOVER
-
WM_NCMOUSELEAVE
-
WM_WTSSESSION_CHANGE
-
WM_TABLET_FIRST
-
WM_TABLET_LAST
-
WM_CUT
-
WM_COPY
-
WM_PASTE
-
WM_CLEAR
-
WM_UNDO
-
WM_RENDERFORMAT
-
WM_RENDERALLFORMATS
-
WM_DESTROYCLIPBOARD
-
WM_DRAWCLIPBOARD
-
WM_PAINTCLIPBOARD
-
WM_VSCROLLCLIPBOARD
-
WM_SIZECLIPBOARD
-
WM_ASKCBFORMATNAME
-
WM_CHANGECBCHAIN
-
WM_HSCROLLCLIPBOARD
-
WM_QUERYNEWPALETTE
-
WM_PALETTEISCHANGING
-
WM_PALETTECHANGED
-
WM_HOTKEY
-
WM_PRINT
-
WM_PRINTCLIENT
-
WM_APPCOMMAND
-
WM_THEMECHANGED
-
WM_CLIPBOARDUPDATE
-
WM_DWMCOMPOSITIONCHANGED
-
WM_DWMNCRENDERINGCHANGED
-
WM_DWMCOLORIZATIONCOLORCHANGED
-
WM_DWMWINDOWMAXIMIZEDCHANGE
-
WM_GETTITLEBARINFOEX
-
WM_HANDHELDFIRST
-
WM_HANDHELDLAST
-
WM_AFXFIRST
-
WM_AFXLAST
-
WM_PENWINFIRST
-
WM_PENWINLAST
-
WM_APP
-
WM_USER
-
SW_SCROLLCHILDREN
-
SW_INVALIDATE
-
SW_ERASE
-
SW_SMOOTHSCROLL
-
WM_DP_MEDIAEVENT
-
WM_DP_INVALID
Cursors
-
IDC_ARROW
-
IDC_IBEAM
-
IDC_WAIT
-
IDC_CROSS
-
IDC_UPARROW
-
IDC_SIZENWSE
-
IDC_SIZENESW
-
IDC_SIZEWE
-
IDC_SIZENS
-
IDC_SIZEALL
-
IDC_NO
-
IDC_HAND
-
IDC_APPSTARTING
-
IDC_HELP