示例#1
0
        public static string D3D12SerializeVersionedRootSignature(VersionedRootSignatureDescription description, out Blob blob)
        {
            var result = D3D12SerializeVersionedRootSignature(description, out blob, out Blob errorBlob);

            if (result.Failure)
            {
                return(errorBlob.ConvertToString());
            }

            return(string.Empty);
        }
示例#2
0
        public static string D3D12SerializeVersionedRootSignature(VersionedRootSignatureDescription description, out Blob blob)
        {
            var errorString = string.Empty;

            if (D3D12SerializeVersionedRootSignature(description, out blob, out var errorBlob).Failure)
            {
                errorString = errorBlob.ConvertToString();
            }

            errorBlob?.Dispose();
            return(errorString);
        }