internal/graphicsdriver/directx: add a comment

This commit is contained in:
Hajime Hoshi 2022-05-29 20:05:37 +09:00
parent ad380a32f4
commit 0081fa7a47

View File

@ -38,6 +38,7 @@ const is64bit = uint64(^uintptr(0)) == ^uint64(0)
// In 32bit machines, DirectX is not used because // In 32bit machines, DirectX is not used because
// 1) The functions syscall.Syscall cannot accept 64bit values as one argument // 1) The functions syscall.Syscall cannot accept 64bit values as one argument
// 2) The struct layouts can be different // 2) The struct layouts can be different
// TODO: Support DirectX for 32bit machines (#2088).
var isDirectXAvailable = is64bit && theGraphics.initializeDevice() == nil var isDirectXAvailable = is64bit && theGraphics.initializeDevice() == nil
var theGraphics Graphics var theGraphics Graphics