// d3d10umddi.h
typedef struct D3D11_1DDI_ENCRYPTED_BLOCK_INFO {
UINT NumEncryptedBytesAtBeginning;
UINT NumBytesInSkipPattern;
UINT NumBytesInEncryptPattern;
} D3D11_1DDI_ENCRYPTED_BLOCK_INFO;
View the official Windows Driver Kit DDI referenceNo description available.
Specifies which bytes in a video surface are encrypted.
NumEncryptedBytesAtBeginningThe number of bytes that are encrypted at the start of the buffer.
NumBytesInSkipPatternThe number of bytes that are skipped after the first NumEncryptedBytesAtBeginning bytes, and then after each block of NumBytesInEncryptPattern bytes. Skipped bytes are not encrypted.
NumBytesInEncryptPatternThe number of bytes that are encrypted after each block of skipped bytes.
The skip and encrypt pattern is then repeated until the buffer ends. For more information about the skip-encrypt pattern, see the Remarks section.
Because the buffer's encrypted portion is specified in bytes, an application must ensure that the encrypted blocks match the GPU's crypto-block alignment.
The following examples show how the runtime can partition a buffer's encryption.