public void Init(int texSize) { if (m_depthTexture != null) Destroy(); m_depthTexture = MyManagers.RwTextures.CreateDepth("MySingleShadowmap.DepthTexture", texSize, texSize, Format.R32_Typeless, Format.R32_Float, Format.D32_Float); SetPosition(Matrix.Identity); }
public void Init(int texSize) { if (m_depthTexture != null) { Destroy(); } m_depthTexture = MyManagers.RwTextures.CreateDepth("MySingleShadowmap.DepthTexture", texSize, texSize, Format.R32_Typeless, Format.R32_Float, Format.D32_Float); SetPosition(Matrix.Identity); }
public void DisposeTex(ref IDepthTexture texture) { if (texture == null) { return; } MyDepthTexture textureInternal = (MyDepthTexture)texture; if (m_isDeviceInit) { textureInternal.OnDeviceEnd(); } m_depthTextures.Deallocate(textureInternal); texture = null; }
public void DisposeTex(ref IDepthTexture texture) { if (texture == null) return; MyDepthTexture textureInternal = (MyDepthTexture) texture; if (m_isDeviceInit) textureInternal.OnDeviceEnd(); m_depthTextures.Deallocate(textureInternal); texture = null; }