mirror of
https://github.com/danoon2/Boxedwine.git
synced 2025-12-05 18:46:44 -06:00
removed another 2 deletes of void* in vulkan.
This commit is contained in:
@@ -2357,7 +2357,7 @@ void MarshalVkPipelineBinaryDataKHR::write(BoxedVulkanInfo* pBoxedInfo, KMemory*
|
||||
}
|
||||
}
|
||||
MarshalVkPipelineBinaryDataKHR::~MarshalVkPipelineBinaryDataKHR() {
|
||||
delete[] s.pData;
|
||||
delete[] (char*)s.pData;
|
||||
}
|
||||
void MarshalVkPipelineBinaryKeysAndDataKHR::read(BoxedVulkanInfo* pBoxedInfo, KMemory* memory, U32 address, VkPipelineBinaryKeysAndDataKHR* s) {
|
||||
s->binaryCount = (uint32_t)memory->readd(address);address+=4;
|
||||
@@ -13418,7 +13418,7 @@ void MarshalVkPipelineExecutableInternalRepresentationKHR::write(BoxedVulkanInfo
|
||||
}
|
||||
MarshalVkPipelineExecutableInternalRepresentationKHR::~MarshalVkPipelineExecutableInternalRepresentationKHR() {
|
||||
delete (VkBaseOutStructure*)s.pNext;
|
||||
delete[] s.pData;
|
||||
delete[] (char*)s.pData;
|
||||
}
|
||||
void MarshalVkPhysicalDeviceShaderDemoteToHelperInvocationFeatures::read(BoxedVulkanInfo* pBoxedInfo, KMemory* memory, U32 address, VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures* s) {
|
||||
s->sType = (VkStructureType)memory->readd(address);address+=4;
|
||||
|
||||
@@ -24,6 +24,7 @@ public class VkHostMarshalType {
|
||||
boolean deleteItems = false;
|
||||
String itemCount;
|
||||
boolean unlock = false;
|
||||
boolean isVoid = false;
|
||||
}
|
||||
|
||||
public static void writeHeader(VkType t, StringBuilder out) throws Exception {
|
||||
@@ -245,10 +246,12 @@ public class VkHostMarshalType {
|
||||
}
|
||||
|
||||
out.append("new ");
|
||||
paramData.add(new MarshalParamData("s."+param.name, true));
|
||||
MarshalParamData data = new MarshalParamData("s."+param.name, true);
|
||||
paramData.add(data);
|
||||
if (param.paramType.name.equals("void")) {
|
||||
if (param.isPointer) {
|
||||
out.append("char");
|
||||
data.isVoid = true;
|
||||
} else {
|
||||
throw new Exception("oops");
|
||||
}
|
||||
@@ -1099,6 +1102,9 @@ public class VkHostMarshalType {
|
||||
out.append("[]");
|
||||
}
|
||||
out.append(" ");
|
||||
if (data.isVoid) {
|
||||
out.append("(char*)");
|
||||
}
|
||||
if (data.name.equals("s.pNext")) {
|
||||
out.append("(VkBaseOutStructure*)");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user