WineD3D State management - going live(TM)

Stefan Dösinger stefandoesinger at gmx.at
Fri Oct 20 03:12:48 CDT 2006


Am Freitag 20 Oktober 2006 00:04 schrieb H. Verbeet:
> Well, the number of sampler stages (and thus the number of sampler
> stage states) for example is dependant on hardware limits, so you
> can't really use the "#define STATE_SAMPLER(b, a)
> STATE_RENDER(WINEHIGHEST_RENDER_STATE +
> WINEHIGHEST_SAMPLER_STATE * b + a)" macro since
> WINEHIGHEST_SAMPLER_STATE would be non-constant.
include/wine/wined3d_types.h

#define WINED3D_HIGHEST_SAMPLER_STATE WINED3DSAMP_DMAPOFFSET
WINED3DSAMP_DMAPOFFSET     = 13,

and dlls/wined3d/wined3d_private.h
#define MAX_SAMPLERS      16



More information about the wine-devel mailing list