Device.CreateDepthStencilSurface 메서드
업데이트: 2007년 11월
깊이 스텐실 리소스를 만듭니다.
네임스페이스: Microsoft.WindowsMobile.DirectX.Direct3D
어셈블리: Microsoft.WindowsMobile.DirectX(Microsoft.WindowsMobile.DirectX.dll)
구문
‘선언
Public Function CreateDepthStencilSurface ( _
width As Integer, _
height As Integer, _
format As DepthFormat, _
multiSampleType As MultiSampleType _
) As Surface
‘사용 방법
Dim instance As Device
Dim width As Integer
Dim height As Integer
Dim format As DepthFormat
Dim multiSampleType As MultiSampleType
Dim returnValue As Surface
returnValue = instance.CreateDepthStencilSurface(width, _
height, format, multiSampleType)
public Surface CreateDepthStencilSurface(
int width,
int height,
DepthFormat format,
MultiSampleType multiSampleType
)
public:
Surface^ CreateDepthStencilSurface(
int width,
int height,
DepthFormat format,
MultiSampleType multiSampleType
)
public function CreateDepthStencilSurface(
width : int,
height : int,
format : DepthFormat,
multiSampleType : MultiSampleType
) : Surface
매개 변수
width
형식: System.Int32깊이 스텐실 표면의 너비(픽셀)입니다.
height
형식: System.Int32깊이 스텐실 표면의 높이(픽셀)입니다.
format
형식: Microsoft.WindowsMobile.DirectX.Direct3D.DepthFormat깊이 스텐실 표면의 형식을 설명하는 DepthFormat 열거 형식의 멤버입니다. 이 값은 현재 장치에 대해 열거된 깊이 스텐실 형식 중 하나여야 합니다.
multiSampleType
형식: Microsoft.WindowsMobile.DirectX.Direct3D.MultiSampleType다중 샘플링 버퍼 형식을 설명하는 MultiSampleType 열거 형식의 멤버입니다. 이 값은 이 표면이 SetRenderTarget에 의해 설정된 DepthStencilSurface에 전달될 때 지원되는 다중 샘플 형식 중 하나여야 합니다.
반환 값
형식: Microsoft.WindowsMobile.DirectX.Direct3D.Surface
만들어진 깊이 스텐실 표면 리소스를 나타내는 Surface입니다.
예외
예외 | 상황 |
---|---|
NotAvailableException | 현재 장치에서 쿼리된 다중 샘플 형식을 지원하지 않는 경우 |
InvalidCallException | 메서드 호출이 잘못된 경우. 예를 들어 매개 변수에 잘못된 값이 포함되어 있을 수 있습니다. |
OutOfMemoryException | Direct3D에서 메모리가 부족하여 호출을 완료할 수 없는 경우 |
권한
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.
플랫폼
Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
버전 정보
.NET Compact Framework
3.5, 2.0에서 지원