Skip to content

Instantly share code, notes, and snippets.

View bobbrow's full-sized avatar

Bob Brown bobbrow

  • Microsoft
  • Tucson, AZ
View GitHub Profile
@bobbrow
bobbrow / gist:f86318aec24306e224e649b25c4e4d22
Last active August 24, 2016 16:15
Converting Root Signature 1.0 to Root Signature 1.1
// Create Root Signature 1.1.
{
D3D12_FEATURE_DATA_ROOT_SIGNATURE featureData = {};
// This is the highest version the sample supports. If CheckFeatureSupport succeeds, the HighestVersion returned will not be greater than this.
featureData.HighestVersion = D3D_ROOT_SIGNATURE_VERSION_1_1;
if (FAILED(m_device->CheckFeatureSupport(D3D12_FEATURE_ROOT_SIGNATURE, &featureData, sizeof(featureData))))
{
featureData.HighestVersion = D3D_ROOT_SIGNATURE_VERSION_1_0;