XGEnableExclusiveLocking

Enable or disable exclusive locking of texture-address computation APIs.

Syntax

void XGEnableExclusiveLocking(
         BOOL LocksEnabled
)  

Parameters

LocksEnabled
Type: BOOL 

[in] true to enable exclusive locking within XGCreateTextureComputer and XGComputeTexture*Layout APIs; false to disable exclusive locking of these APIs.

Return value

None.

If you need to call the XGSSetHardwareVersion function at runtime to switch between hardware versions, enable exclusive locking and use the XGEnterExclusiveLock and XGLeaveExclusiveLock functions to synchronize creation of XG texture computer objects.

To enable exclusive locking, call XGEnableExclusiveLocking before the D3D device is created and before creating any texture computers. Exclusive locking is disabled by default. When enabled, XG will acquire a critical section within all XGCreateTextureComputer and XGComputeTexture*Layout APIs.

Requirements

Header: Declared in xg.h.

Library: Use xg_x.lib.