Lines Matching defs:desc
150 This->state.viewport.Width = refSurf->desc.Width;
151 This->state.viewport.Height = refSurf->desc.Height;
157 This->state.scissor.maxx = refSurf->desc.Width;
158 This->state.scissor.maxy = refSurf->desc.Height;
823 user_assert(surf->desc.Format == D3DFMT_A8R8G8B8, D3DERR_INVALIDCALL);
826 This->cursor.w = MIN2(surf->desc.Width, 32);
827 This->cursor.h = MIN2(surf->desc.Height, 32);
830 This->cursor.w = MIN2(surf->desc.Width, This->cursor.image->width0);
831 This->cursor.h = MIN2(surf->desc.Height, This->cursor.image->height0);
1234 D3DVERTEXBUFFER_DESC desc;
1242 desc.Format = D3DFMT_VERTEXDATA;
1243 desc.Type = D3DRTYPE_VERTEXBUFFER;
1244 desc.Usage = Usage &
1249 desc.Pool = Pool;
1250 desc.Size = Length;
1251 desc.FVF = FVF;
1254 user_assert(desc.Usage == Usage, D3DERR_INVALIDCALL);
1256 hr = NineVertexBuffer9_new(This, &desc, &buf);
1273 D3DINDEXBUFFER_DESC desc;
1282 desc.Format = Format;
1283 desc.Type = D3DRTYPE_INDEXBUFFER;
1284 desc.Usage = Usage &
1288 desc.Pool = Pool;
1289 desc.Size = Length;
1292 user_assert(desc.Usage == Usage, D3DERR_INVALIDCALL);
1294 hr = NineIndexBuffer9_new(This, &desc, &buf);
1314 D3DSURFACE_DESC desc;
1328 desc.Format = Format;
1329 desc.Type = D3DRTYPE_SURFACE;
1330 desc.Usage = 0;
1331 desc.Pool = Pool;
1332 desc.MultiSampleType = MultiSample;
1333 desc.MultiSampleQuality = MultisampleQuality;
1334 desc.Width = Width;
1335 desc.Height = Height;
1337 case 0: desc.Usage = D3DUSAGE_RENDERTARGET; break;
1338 case 1: desc.Usage = D3DUSAGE_DEPTHSTENCIL; break;
1342 hr = NineSurface9_new(This, NULL, NULL, NULL, 0, 0, 0, &desc, &surface);
1420 user_assert(dst->desc.MultiSampleType == D3DMULTISAMPLE_NONE, D3DERR_INVALIDCALL);
1421 user_assert(src->desc.MultiSampleType == D3DMULTISAMPLE_NONE, D3DERR_INVALIDCALL);
1426 user_assert(dst->desc.Format == src->desc.Format, D3DERR_INVALIDCALL);
1427 user_assert(!depth_stencil_format(dst->desc.Format), D3DERR_INVALIDCALL);
1435 pSourceRect->right <= src->desc.Width &&
1438 pSourceRect->bottom <= src->desc.Height,
1441 copy_width = src->desc.Width;
1442 copy_height = src->desc.Height;
1455 user_assert(destRect.right <= dst->desc.Width &&
1456 destRect.bottom <= dst->desc.Height,
1459 if (compressed_format(dst->desc.Format)) {
1472 if (!(copy_width == src->desc.Width &&
1473 copy_width == dst->desc.Width &&
1474 copy_height == src->desc.Height &&
1475 copy_height == dst->desc.Height)) {
1564 dst->surfaces[l]->desc.Width,
1565 dst->surfaces[l]->desc.Height);
1591 dst->surfaces[l * 6 + z]->desc.Width,
1592 dst->surfaces[l * 6 + z]->desc.Height);
1638 user_assert(dst->desc.Pool == D3DPOOL_SYSTEMMEM, D3DERR_INVALIDCALL);
1639 user_assert(src->desc.Pool == D3DPOOL_DEFAULT, D3DERR_INVALIDCALL);
1641 user_assert(dst->desc.MultiSampleType < 2, D3DERR_INVALIDCALL);
1642 user_assert(src->desc.MultiSampleType < 2, D3DERR_INVALIDCALL);
1644 user_assert(src->desc.Width == dst->desc.Width, D3DERR_INVALIDCALL);
1645 user_assert(src->desc.Height == dst->desc.Height, D3DERR_INVALIDCALL);
1647 user_assert(src->desc.Format != D3DFMT_NULL, D3DERR_INVALIDCALL);
1707 pSourceRect->right == src->desc.Width &&
1708 pSourceRect->bottom == src->desc.Height), D3DERR_INVALIDCALL);
1712 pDestRect->right == dst->desc.Width &&
1713 pDestRect->bottom == dst->desc.Height), D3DERR_INVALIDCALL);
1715 (dst->desc.Width == src->desc.Width &&
1716 dst->desc.Height == src->desc.Height), D3DERR_INVALIDCALL);
1719 user_assert(!zs || dst->desc.Format == src->desc.Format,
1762 blit.dst.box.width = dst->desc.Width;
1763 blit.dst.box.height = dst->desc.Height;
1786 blit.src.box.x = flip_x ? src->desc.Width : 0;
1787 blit.src.box.y = flip_y ? src->desc.Height : 0;
1788 blit.src.box.width = flip_x ? -src->desc.Width : src->desc.Width;
1789 blit.src.box.height = flip_y ? -src->desc.Height : src->desc.Height;
1816 dst->desc.Usage & (D3DUSAGE_RENDERTARGET | D3DUSAGE_DEPTHSTENCIL),
1832 dst->desc.Width, dst->desc.Height);
1837 src->desc.Width, src->desc.Height);
1841 ms = (dst->desc.MultiSampleType != src->desc.MultiSampleType) ||
1842 (dst->desc.MultiSampleQuality != src->desc.MultiSampleQuality);
1860 blit.dst.box.x + blit.dst.box.width <= dst->desc.Width &&
1861 blit.src.box.x + blit.src.box.width <= src->desc.Width &&
1862 blit.dst.box.y + blit.dst.box.height <= dst->desc.Height &&
1863 blit.src.box.y + blit.src.box.height <= src->desc.Height);
1902 user_assert(surf->desc.Format != D3DFMT_NULL, D3D_OK);
1910 if (compressed_format(surf->desc.Format)) {
1920 w = surf->desc.Width;
1921 h = surf->desc.Height;
1992 rt->desc.Usage & D3DUSAGE_RENDERTARGET, D3DERR_INVALIDCALL);
1997 This->state.viewport.Width = rt->desc.Width;
1998 This->state.viewport.Height = rt->desc.Height;
2004 This->state.scissor.maxx = rt->desc.Width;
2005 This->state.scissor.maxy = rt->desc.Height;
2806 w = state->rt[i]->desc.Width;
2807 h = state->rt[i]->desc.Height;
2809 if (state->rt[i]->desc.Width != w || state->rt[i]->desc.Height != h) {
2816 (state->ds->desc.Width != w || state->ds->desc.Height != h))
2965 if (rt && rt->desc.Format != D3DFMT_NULL && (ps_mask & (1 << i)) &&
2966 rt->desc.Usage & D3DUSAGE_AUTOGENMIPMAP) {
3248 user_assert(vdecl || (vs->byte_code.version < 0x30 && dst->desc.FVF),
3251 DWORD FVF = dst->desc.FVF;