diff --git a/LICENSE b/LICENSE index ab60297..8bd3ee8 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2018 +Copyright (c) 2018-2023 Emilio López Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 34963a4..bea4374 100644 --- a/README.md +++ b/README.md @@ -14,12 +14,13 @@ const char* ddsData = ... // Decode header and get pointer to initial data ddspp::Descriptor desc; -ddspp::decode_header(ddsData, desc); -const char* initialData = ddsData + desc.headerSize; +ddspp::Result decodeResult = ddspp::decode_header(ddsData, desc); // Feed to the graphics API -if(initialData) +if(decodeResult == ddspp::Success) { + const char* initialData = ddsData + desc.headerSize; + // D3D example { D3D12_SHADER_RESOURCE_VIEW_DESC srvDesc = {};