|
@@ -665,6 +665,10 @@ mod tests {
|
|
|
d.flags = ALLOW_DEPTH_STENCIL;
|
|
d.flags = ALLOW_DEPTH_STENCIL;
|
|
|
XGSuggestSwizzleMode(&d, 0, &mut out);
|
|
XGSuggestSwizzleMode(&d, 0, &mut out);
|
|
|
assert_eq!(out, 0x118);
|
|
assert_eq!(out, 0x118);
|
|
|
|
|
+ // A 1D texture has no tiled layout, whatever its use.
|
|
|
|
|
+ d.dimension = TEXTURE_1D;
|
|
|
|
|
+ XGSuggestSwizzleMode(&d, 0, &mut out);
|
|
|
|
|
+ assert_eq!(out, 0x100);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/// The title's calls: layout, then a copy in and out of each mip.
|
|
/// The title's calls: layout, then a copy in and out of each mip.
|