@@ -172,6 +172,13 @@ impl<R: Resources> RawDepthStencilView<R> {
172172#[ derive( Clone , Debug , Eq , Hash , PartialEq ) ]
173173pub struct RenderTargetView < R : Resources , T > ( RawRenderTargetView < R > , PhantomData < T > ) ;
174174
175+ impl < R : Resources , T > RenderTargetView < R , T > {
176+ /// Get target dimensions
177+ pub fn get_dimensions ( & self ) -> tex:: Dimensions {
178+ self . raw ( ) . get_dimensions ( )
179+ }
180+ }
181+
175182impl < R : Resources , T > Phantom for RenderTargetView < R , T > {
176183 type Raw = RawRenderTargetView < R > ;
177184 fn new ( h : RawRenderTargetView < R > ) -> RenderTargetView < R , T > {
@@ -184,7 +191,14 @@ impl<R: Resources, T> Phantom for RenderTargetView<R, T> {
184191
185192/// Typed DSV
186193#[ derive( Clone , Debug , Eq , Hash , PartialEq ) ]
187- pub struct DepthStencilView < R : Resources , T > ( RawDepthStencilView < R > , PhantomData < T > ) ;
194+ pub struct DepthStencilView < R : Resources , T > ( RawDepthStencilView < R > , PhantomData < T > ) ;
195+
196+ impl < R : Resources , T > DepthStencilView < R , T > {
197+ /// Get target dimensions
198+ pub fn get_dimensions ( & self ) -> tex:: Dimensions {
199+ self . raw ( ) . get_dimensions ( )
200+ }
201+ }
188202
189203impl < R : Resources , T > Phantom for DepthStencilView < R , T > {
190204 type Raw = RawDepthStencilView < R > ;
0 commit comments